diff --git a/daemon/main.c b/daemon/main.c index 525fce3..a66f409 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -114,7 +114,8 @@ int main(int argc, char *argv[]) { "test", no_argument, 0, 't' }, { "status", optional_argument, 0, 's' }, { "help", no_argument, 0, 'h' }, - { "version", no_argument, 0, 'v' } }; + { "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) {