diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-21 15:44:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-21 15:44:56 +0100 |
commit | 85164fa06eac734dd853b7e08c1762ada06e9a2c (patch) | |
tree | 91550f39c8278682e0a3acf36db57bcadb07a8c7 /networking/ping.c | |
parent | c270454f8f1f33e5438e46cb13bebd8fb190a40a (diff) | |
download | busybox-w32-85164fa06eac734dd853b7e08c1762ada06e9a2c.tar.gz busybox-w32-85164fa06eac734dd853b7e08c1762ada06e9a2c.tar.bz2 busybox-w32-85164fa06eac734dd853b7e08c1762ada06e9a2c.zip |
ping: use |=, not =, when combine option bit mask
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c index 0ca41b9fa..c7b6cbe9a 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -726,7 +726,7 @@ static int common_ping_main(int opt, char **argv) | |||
726 | 726 | ||
727 | /* exactly one argument needed; -v and -q don't mix; -c NUM, -w NUM, -W NUM */ | 727 | /* exactly one argument needed; -v and -q don't mix; -c NUM, -w NUM, -W NUM */ |
728 | opt_complementary = "=1:q--v:v--q:c+:w+:W+"; | 728 | opt_complementary = "=1:q--v:v--q:c+:w+:W+"; |
729 | opt = getopt32(argv, OPT_STRING, &pingcount, &str_s, &deadline, &timeout, &str_I); | 729 | opt |= getopt32(argv, OPT_STRING, &pingcount, &str_s, &deadline, &timeout, &str_I); |
730 | if (opt & OPT_s) | 730 | if (opt & OPT_s) |
731 | datalen = xatou16(str_s); // -s | 731 | datalen = xatou16(str_s); // -s |
732 | if (opt & OPT_I) { // -I | 732 | if (opt & OPT_I) { // -I |