networkd-wait-online: fix -i argument
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 26 Jul 2015 13:37:42 +0000 (15:37 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 26 Jul 2015 13:39:09 +0000 (15:39 +0200)
-i (aka --interface) takes an argument. Tell getopt_long() that, so that optarg
isn't NULL.

src/network/networkd-wait-online.c

index 32c31fd..d958b48 100644 (file)
@@ -66,7 +66,7 @@ static int parse_argv(int argc, char *argv[]) {
         assert(argc >= 0);
         assert(argv);
 
-        while ((c = getopt_long(argc, argv, "+hiq", options, NULL)) >= 0)
+        while ((c = getopt_long(argc, argv, "+hi:q", options, NULL)) >= 0)
 
                 switch (c) {