getopt cleanup
Benjamin Marzinski
maintainerPATCH 1/1 getopt cleanup
'q' and 'i' are never used, so don't accept them as valid options
-Ben
multipath/main.c +1 -1
@@ -321,7 +321,7 @@ main (int argc, char *argv[])if (load_config (DEFAULT_CONFIGFILE ))exit (1 ); -while ((arg =getopt (argc, argv,":qdl::Ffi:M:v:p:b:" )) !=EOF ) { +while ((arg =getopt (argc, argv,":dl::FfM:v:p:b:" )) !=EOF ) {switch (arg) {case 1 :printf ("optarg : %s\n" ,optarg);break ;
Christophe Varoqui
AppliedQuoted 4 lines · Benjamin Marzinski
'q' and 'i' are never used, so don't accept them as valid options
-Ben
--
Applied.
Thanks,
cvaroqui