Skip to content

Commit cc94b2b

Browse files
committed
kmod: drop leading + from getopt
From the man page: If the first character of optstring is '+' ... then option processing stops as soon as a nonoption argument is encountered. In all fairness, I'm not sure if we want this behaviour. Especially since no other kmod tools use enforce such behaviour. Drop it for consistency-sake. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent 5086df5 commit cc94b2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/kmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "kmod.h"
1717

18-
static const char options_s[] = "+hV";
18+
static const char options_s[] = "hV";
1919
static const struct option options[] = {
2020
{ "help", no_argument, NULL, 'h' },
2121
{ "version", no_argument, NULL, 'V' },

0 commit comments

Comments
 (0)