]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
noptions requires an argument.
authorRoy Marples <roy@marples.name>
Fri, 4 Dec 2015 14:41:27 +0000 (14:41 +0000)
committerRoy Marples <roy@marples.name>
Fri, 4 Dec 2015 14:41:27 +0000 (14:41 +0000)
Fixes [9e55971edd].

if-options.c

index 1a6d981fcc16f38dcbcfd986000b8f721212e912..4cfc5188a8518cb5e1f64ac694e16c355d82d372 100644 (file)
@@ -145,7 +145,7 @@ const struct option cf_options[] = {
        {"noipv4ll",        no_argument,       NULL, 'L'},
        {"master",          no_argument,       NULL, 'M'},
        {"renew",           no_argument,       NULL, 'N'},
-       {"nooption",        optional_argument, NULL, 'O'},
+       {"nooption",        required_argument, NULL, 'O'},
        {"require",         required_argument, NULL, 'Q'},
        {"static",          required_argument, NULL, 'S'},
        {"test",            no_argument,       NULL, 'T'},