← Commit list

581930cc0

Denis Vlasenko
Denis Vlasenko
2007-01-24
FAILED Duration: 12s

Subject

opt_complementary doesn't like numeric opts :(

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ping.c+1 -1
@@ -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