lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] inet_chksum.c does not compile since latest changes


From: Guillaume du Pontavice
Subject: [lwip-devel] inet_chksum.c does not compile since latest changes
Date: Mon, 11 May 2009 15:52:20 +0200

recent changes in lwip/src/core/ipv4/inet_chksum.c break lwip compilation

the following patch fixes this :

Index: lwip/src/core/ipv4/inet_chksum.c
===================================================================
RCS file: /sources/lwip/lwip/src/core/ipv4/inet_chksum.c,v
retrieving revision 1.8
diff -c -u -r1.8 inet_chksum.c
--- lwip/src/core/ipv4/inet_chksum.c    6 May 2009 17:35:50 -0000    1.8
+++ lwip/src/core/ipv4/inet_chksum.c    11 May 2009 13:51:37 -0000
@@ -66,7 +66,7 @@
 /** Like the name says... */
 #if LWIP_PLATFORM_BYTESWAP && (BYTE_ORDER == LITTLE_ENDIAN)
 /* little endian and PLATFORM_BYTESWAP defined */
-#define SWAP_BYTES_IN_WORD(w) LWIP_PLATFORM_HTONS(x)
+#define SWAP_BYTES_IN_WORD(w) LWIP_PLATFORM_HTONS(w)
 #else
 /* can't use htons on big endian (or PLATFORM_BYTESWAP not defined)... */
 #define SWAP_BYTES_IN_WORD(w) ((w & 0xff) << 8) | ((w & 0xff00) >> 8)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]