[dm-devel] [multipath-tools] [patch] getopt cleanup
Benjamin Marzinski
bmarzins at redhat.com
Fri Jun 2 00:19:12 UTC 2006
'q' and 'i' are never used, so don't accept them as valid options
-Ben
-------------- next part --------------
diff -urpN mp-devel-clean/multipath/main.c mp-devel-patched/multipath/main.c
--- mp-devel-clean/multipath/main.c 2006-04-03 14:10:39.000000000 -0500
+++ mp-devel-patched/multipath/main.c 2006-06-01 12:49:54.000000000 -0500
@@ -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;
More information about the dm-devel
mailing list