diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-24 23:55:34 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-24 23:55:34 +0000 |
commit | 421288c44e3cf6116d973965de6d1ed3ca4fc886 (patch) | |
tree | c9d0c30fb42bec5fe334c382e7e95ec6ab0c39c0 | |
parent | 89fc336b577c7e70cde5ad1bdd0bcd8c9b42ebc2 (diff) | |
download | busybox-w32-421288c44e3cf6116d973965de6d1ed3ca4fc886.tar.gz busybox-w32-421288c44e3cf6116d973965de6d1ed3ca4fc886.tar.bz2 busybox-w32-421288c44e3cf6116d973965de6d1ed3ca4fc886.zip |
opt_complementary doesn't like numeric opts :(
git-svn-id: svn://busybox.net/trunk/busybox@17514 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 7d36b7455..d65310789 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -732,7 +732,7 @@ int ping_main(int argc, char **argv) | |||
732 | datalen = DEFDATALEN; /* initialized here rather than in global scope to work around gcc bug */ | 732 | datalen = DEFDATALEN; /* initialized here rather than in global scope to work around gcc bug */ |
733 | 733 | ||
734 | /* exactly one argument needed, -v and -q don't mix. So do 4, 6 */ | 734 | /* exactly one argument needed, -v and -q don't mix. So do 4, 6 */ |
735 | opt_complementary = "=1:q--v:v--q" USE_PING6(":4--6:6--4"); | 735 | opt_complementary = "=1:q--v:v--q"; |
736 | getopt32(argc, argv, OPT_STRING, &opt_c, &opt_s, &opt_I); | 736 | getopt32(argc, argv, OPT_STRING, &opt_c, &opt_s, &opt_I); |
737 | if (option_mask32 & OPT_c) pingcount = xatoul(opt_c); // -c | 737 | if (option_mask32 & OPT_c) pingcount = xatoul(opt_c); // -c |
738 | if (option_mask32 & OPT_s) datalen = xatou16(opt_s); // -s | 738 | if (option_mask32 & OPT_s) datalen = xatou16(opt_s); // -s |