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:
c270454
)
ping: use |=, not =, when combine option bit mask
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 21 Nov 2009 14:44:56 +0000
(15:44 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 21 Nov 2009 14:44:56 +0000
(15:44 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ping.c
patch
|
blob
|
history
diff --git
a/networking/ping.c
b/networking/ping.c
index 0ca41b9fab450c931b65f94f33ac1019f5a8d291..c7b6cbe9a75bf73ff2f0c26c9486d33174de92e0 100644
(file)
--- a/
networking/ping.c
+++ b/
networking/ping.c
@@
-726,7
+726,7
@@
static int common_ping_main(int opt, char **argv)
/* exactly one argument needed; -v and -q don't mix; -c NUM, -w NUM, -W NUM */
opt_complementary = "=1:q--v:v--q:c+:w+:W+";
- opt = getopt32(argv, OPT_STRING, &pingcount, &str_s, &deadline, &timeout, &str_I);
+ opt
|
= getopt32(argv, OPT_STRING, &pingcount, &str_s, &deadline, &timeout, &str_I);
if (opt & OPT_s)
datalen = xatou16(str_s); // -s
if (opt & OPT_I) { // -I