From: Christophe Varoqui Date: Sat, 10 Jun 2006 06:37:52 +0000 (+0200) Subject: [multipath] getopt cleanup X-Git-Tag: 0.4.8~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4a4cbb6df45b229ce357cb5ce78feb5e8a03ecb;p=platform%2Fupstream%2Fmultipath-tools.git [multipath] getopt cleanup 'q' and 'i' are never used, so don't accept them as valid options Benjamin Marzinski, Redhat --- diff --git a/multipath/main.c b/multipath/main.c index 07c046b..c1257a2 100644 --- a/multipath/main.c +++ b/multipath/main.c @@ -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;