Make a gcc 4.1 warning go away.
authorRob Landley <rob@landley.net>
Tue, 1 Aug 2006 00:30:26 +0000 (00:30 -0000)
committerRob Landley <rob@landley.net>
Tue, 1 Aug 2006 00:30:26 +0000 (00:30 -0000)
networking/ping.c

index 518265668fe46c75a3cf5479711fd62339bfe2c7..5cd6f4a1a56e75a042a460ec53b1893edd449c8a 100644 (file)
@@ -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);