]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
dcb: Remove unsupported command line arguments from getopt_long()
authorPetr Machata <me@pmachata.org>
Thu, 10 Dec 2020 23:02:15 +0000 (00:02 +0100)
committerDavid Ahern <dsahern@gmail.com>
Mon, 14 Dec 2020 16:40:32 +0000 (16:40 +0000)
getopt_long() currently includes "c" and "n" in the short option string.
These probably slipped in as a cut'n'paste, and are not actually accepted.
Remove them.

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
dcb/dcb.c

index dc1e9fe04e2201e2f6c961a000a7cd7b89425881..217dd640d7e5d0af3be89c8fb789bff3d82f331a 100644 (file)
--- a/dcb/dcb.c
+++ b/dcb/dcb.c
@@ -349,7 +349,7 @@ int main(int argc, char **argv)
                return EXIT_FAILURE;
        }
 
-       while ((opt = getopt_long(argc, argv, "b:c::fhjnpvN:V",
+       while ((opt = getopt_long(argc, argv, "b:fhjpvN:V",
                                  long_options, NULL)) >= 0) {
 
                switch (opt) {