From bdfdc2bb833cf4bba330c5b52fd5f2716f511337 Mon Sep 17 00:00:00 2001 From: likewise Date: Mon, 7 Jul 2003 09:11:17 +0000 Subject: [PATCH] Made hton/ntoh argument name in prototypes match those in functions. --- src/include/ipv4/lwip/inet.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/include/ipv4/lwip/inet.h b/src/include/ipv4/lwip/inet.h index 80524a72..636efb0c 100644 --- a/src/include/ipv4/lwip/inet.h +++ b/src/include/ipv4/lwip/inet.h @@ -62,10 +62,10 @@ u8_t *inet_ntoa(u32_t addr); /* returns ptr to static buffer; not reentrant! */ #endif /* ntohl */ #if BYTE_ORDER == BIG_ENDIAN -#define htons(x) (x) -#define ntohs(x) (x) -#define htonl(x) (x) -#define ntohl(x) (x) +#define htons(n) (n) +#define ntohs(n) (n) +#define htonl(n) (n) +#define ntohl(n) (n) #else #ifdef LWIP_PREFIX_BYTEORDER_FUNCS /* workaround for naming collisions on some platforms */ @@ -74,10 +74,10 @@ u8_t *inet_ntoa(u32_t addr); /* returns ptr to static buffer; not reentrant! */ #define htonl lwip_htonl #define ntohl lwip_ntohl #endif -u16_t htons(u16_t x); -u16_t ntohs(u16_t x); -u32_t htonl(u32_t x); -u32_t ntohl(u32_t x); +u16_t htons(u16_t n); +u16_t ntohs(u16_t n); +u32_t htonl(u32_t n); +u32_t ntohl(u32_t n); #endif #endif /* __LWIP_INET_H__ */