projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ff2a2
)
[multipath] getopt cleanup
author
Christophe Varoqui
<root@xa-s05.(none)>
Sat, 10 Jun 2006 06:37:52 +0000
(08:37 +0200)
committer
Christophe 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
patch
|
blob
|
history
diff --git
a/multipath/main.c
b/multipath/main.c
index
07c046b
..
c1257a2
100644
(file)
--- 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::Ff
M:v:p:b:")) != EOF ) {
switch(arg) {
case 1: printf("optarg : %s\n",optarg);
break;