[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [multipath-tools] [patch] getopt cleanup
- From: Benjamin Marzinski <bmarzins redhat com>
- To: dm-devel redhat com
- Subject: [dm-devel] [multipath-tools] [patch] getopt cleanup
- Date: Thu, 1 Jun 2006 19:19:12 -0500
'q' and 'i' are never used, so don't accept them as valid options
-Ben
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;
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]