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:
2aced7e
)
Make a gcc 4.1 warning go away.
author
Rob Landley
<rob@landley.net>
Tue, 1 Aug 2006 00:30:26 +0000
(
00:30
-0000)
committer
Rob Landley
<rob@landley.net>
Tue, 1 Aug 2006 00:30:26 +0000
(
00:30
-0000)
networking/ping.c
patch
|
blob
|
history
diff --git
a/networking/ping.c
b/networking/ping.c
index 518265668fe46c75a3cf5479711fd62339bfe2c7..5cd6f4a1a56e75a042a460ec53b1893edd449c8a 100644
(file)
--- a/
networking/ping.c
+++ b/
networking/ping.c
@@
-211,7
+211,7
@@
static void sendping(int junk)
pkt->icmp_type = ICMP_ECHO;
pkt->icmp_code = 0;
pkt->icmp_cksum = 0;
- pkt->icmp_seq =
htons
(ntransmitted++);
+ pkt->icmp_seq =
SWAP_BE16
(ntransmitted++);
pkt->icmp_id = myid;
CLR(ntohs(pkt->icmp_seq) % MAX_DUP_CHK);