summaryrefslogtreecommitdiff
path: root/src/network/networkd-wait-online.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-07-26 15:37:42 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2015-07-26 15:39:09 +0200
commitbaee30afce50b611724e6c6a4ca61a4469b11d9d (patch)
tree6939b27d2592dfdae75738585a68b08d9fcb426f /src/network/networkd-wait-online.c
parent7189be2728ae2926500371cda6f13f9cdc06c21b (diff)
networkd-wait-online: fix -i argument
-i (aka --interface) takes an argument. Tell getopt_long() that, so that optarg isn't NULL.
Diffstat (limited to 'src/network/networkd-wait-online.c')
-rw-r--r--src/network/networkd-wait-online.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-wait-online.c b/src/network/networkd-wait-online.c
index 32c31fdf3d..d958b48771 100644
--- a/src/network/networkd-wait-online.c
+++ b/src/network/networkd-wait-online.c
@@ -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) {