From cae61e7ca4200e976de1a790075ef1d7b5317bb2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 1 Aug 2006 00:30:26 +0000 Subject: [PATCH] Make a gcc 4.1 warning go away. --- networking/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/ping.c b/networking/ping.c index 518265668..5cd6f4a1a 100644 --- 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); -- 2.25.1