projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6adbf1
)
ping: fix wrong sign extension of packet id (bug 1373)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 27 May 2007 00:53:41 +0000
(
00:53
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 27 May 2007 00:53:41 +0000
(
00:53
-0000)
networking/ping.c
patch
|
blob
|
history
diff --git
a/networking/ping.c
b/networking/ping.c
index 2f331910e57f7cef0e1e0fd616f363cd1fdbcfff..9db3180f113ef1b44b99fa12325608f5bb578364 100644
(file)
--- a/
networking/ping.c
+++ b/
networking/ping.c
@@
-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
in
t 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 = (
u
int16_t) getpid();
hostname = argv[optind];
#if ENABLE_PING6
if (option_mask32 & OPT_IPV4)