From a27e741beb5316ef4b3747099c16eefb821f0c25 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Wed, 15 May 2019 18:43:42 +0100 Subject: [PATCH] Reformat long_options now that travis matches --- daemon/main.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/daemon/main.c b/daemon/main.c index a66f409..f0910e3 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -108,14 +108,12 @@ int main(int argc, char *argv[]) int opt = 0; /* Options struct for getopt_long */ - static struct option long_options[] = { { "daemonize", no_argument, 0, 'd' }, - { "log-to-syslog", no_argument, 0, 'l' }, - { "request", optional_argument, 0, 'r' }, - { "test", no_argument, 0, 't' }, - { "status", optional_argument, 0, 's' }, - { "help", no_argument, 0, 'h' }, - { "version", no_argument, 0, 'v' }, - { NULL, 0, NULL, 0 }, }; + static struct option long_options[] = { + { "daemonize", no_argument, 0, 'd' }, { "log-to-syslog", no_argument, 0, 'l' }, + { "request", optional_argument, 0, 'r' }, { "test", no_argument, 0, 't' }, + { "status", optional_argument, 0, 's' }, { "help", no_argument, 0, 'h' }, + { "version", no_argument, 0, 'v' }, { NULL, 0, NULL, 0 }, + }; static const char *short_options = "dls::r::tvh"; while ((opt = getopt_long(argc, argv, short_options, long_options, 0)) != -1) {