projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9a279b
)
opt_complementary doesn't like numeric opts :(
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 24 Jan 2007 23:55:34 +0000
(23:55 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 24 Jan 2007 23:55:34 +0000
(23:55 -0000)
networking/ping.c
patch
|
blob
|
history
diff --git
a/networking/ping.c
b/networking/ping.c
index 7d36b7455e96f293c6805e3f0a3c82fcc542bfa9..d65310789e3c715353bdcb9f9dd1908c4882f189 100644
(file)
--- a/
networking/ping.c
+++ b/
networking/ping.c
@@
-732,7
+732,7
@@
int ping_main(int argc, char **argv)
datalen = DEFDATALEN; /* initialized here rather than in global scope to work around gcc bug */
/* exactly one argument needed, -v and -q don't mix. So do 4, 6 */
- opt_complementary = "=1:q--v:v--q"
USE_PING6(":4--6:6--4")
;
+ opt_complementary = "=1:q--v:v--q";
getopt32(argc, argv, OPT_STRING, &opt_c, &opt_s, &opt_I);
if (option_mask32 & OPT_c) pingcount = xatoul(opt_c); // -c
if (option_mask32 & OPT_s) datalen = xatou16(opt_s); // -s