[multipath] getopt cleanup
authorChristophe Varoqui <root@xa-s05.(none)>
Sat, 10 Jun 2006 06:37:52 +0000 (08:37 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Sat, 10 Jun 2006 06:37:52 +0000 (08:37 +0200)
'q' and 'i' are never used, so don't accept them as valid options

Benjamin Marzinski, Redhat

multipath/main.c

index 07c046b..c1257a2 100644 (file)
@@ -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;