diff options
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c index d8767a39f..82d5b7a85 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -341,7 +341,7 @@ static int common_ping_main(sa_family_t af, char **argv) | |||
341 | 341 | ||
342 | /* Full(er) version */ | 342 | /* Full(er) version */ |
343 | 343 | ||
344 | #define OPT_STRING ("qvc:s:t:w:W:I:np:4" IF_PING6("6")) | 344 | #define OPT_STRING ("qvc:+s:t:+w:+W:+I:np:4" IF_PING6("6")) |
345 | enum { | 345 | enum { |
346 | OPT_QUIET = 1 << 0, | 346 | OPT_QUIET = 1 << 0, |
347 | OPT_VERBOSE = 1 << 1, | 347 | OPT_VERBOSE = 1 << 1, |
@@ -865,7 +865,7 @@ static int common_ping_main(int opt, char **argv) | |||
865 | INIT_G(); | 865 | INIT_G(); |
866 | 866 | ||
867 | /* exactly one argument needed; -v and -q don't mix; -c NUM, -t NUM, -w NUM, -W NUM */ | 867 | /* exactly one argument needed; -v and -q don't mix; -c NUM, -t NUM, -w NUM, -W NUM */ |
868 | opt_complementary = "=1:q--v:v--q:c+:t+:w+:W+"; | 868 | opt_complementary = "=1:q--v:v--q"; |
869 | opt |= getopt32(argv, OPT_STRING, &pingcount, &str_s, &opt_ttl, &deadline, &timeout, &str_I, &str_p); | 869 | opt |= getopt32(argv, OPT_STRING, &pingcount, &str_s, &opt_ttl, &deadline, &timeout, &str_I, &str_p); |
870 | if (opt & OPT_s) | 870 | if (opt & OPT_s) |
871 | datalen = xatou16(str_s); // -s | 871 | datalen = xatou16(str_s); // -s |