diff mbox series

[iproute2-next,01/10] dcb: Remove unsupported command line arguments from getopt_long()

Message ID 8e5515689baf3c3df8c7e014d139e9de9cb31cf9.1607640819.git.me@pmachata.org
State New
Headers show
Series dcb: Support PFC, buffer, maxrate objects | expand

Commit Message

Petr Machata Dec. 10, 2020, 11:02 p.m. UTC
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>
---
 dcb/dcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/dcb/dcb.c b/dcb/dcb.c
index dc1e9fe04e22..217dd640d7e5 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) {