← Commit list

1c9ad62d2

Denis Vlasenko
Denis Vlasenko
2007-05-27
FAILED Duration: 16s

Subject

ping: fix wrong sign extension of packet id (bug 1373)

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+2 -2
@@ -249,7 +249,7 @@ static unsigned datalen; /* intentionally uninitialized to work around gcc bug *
static int if_index;
static unsigned long ntransmitted, nreceived, nrepeats, pingcount;
-static int myid;
+static uint16_t myid;
static unsigned tmin = UINT_MAX, tmax;
static unsigned long tsum;
static char rcvd_tbl[MAX_DUP_CHK / 8];
@@ -667,7 +667,7 @@ int ping_main(int argc, char **argv)
source_lsa = xdotted2sockaddr(opt_I, 0);
}
}
- myid = (int16_t) getpid();
+ myid = (uint16_t) getpid();
hostname = argv[optind];
#if ENABLE_PING6
if (option_mask32 & OPT_IPV4)