From: Petr Machata Date: Thu, 10 Dec 2020 23:02:15 +0000 (+0100) Subject: dcb: Remove unsupported command line arguments from getopt_long() X-Git-Tag: v5.11.0~32^2~3^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe954ee34764eec65ed8b272b4b11c5a36f73a4;p=thirdparty%2Fiproute2.git dcb: Remove unsupported command line arguments from getopt_long() 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 Signed-off-by: David Ahern --- diff --git a/dcb/dcb.c b/dcb/dcb.c index dc1e9fe04..217dd640d 100644 --- 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) {