1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00

networkd-wait-online: fix -i argument

-i (aka --interface) takes an argument. Tell getopt_long() that, so that optarg
isn't NULL.
This commit is contained in:
Martin Pitt 2015-07-26 15:37:42 +02:00
parent 7189be2728
commit baee30afce

View 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) {