commit | cae61e7ca4200e976de1a790075ef1d7b5317bb2 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue Aug 01 00:30:26 2006 +0000 |
committer | Rob Landley <rob@landley.net> | Tue Aug 01 00:30:26 2006 +0000 |
tree | 30116aecdca321830e11fadfd6dab36eb3de99e2 | |
parent | 2aced7ea043aff64bd4e5f2814818fb4d0c803d4 [diff] [blame] |
Make a gcc 4.1 warning go away.
diff --git a/networking/ping.c b/networking/ping.c index 5182656..5cd6f4a 100644 --- a/networking/ping.c +++ b/networking/ping.c
@@ -211,7 +211,7 @@ 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);