mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
Made hton/ntoh argument name in prototypes match those in functions.
This commit is contained in:
parent
351e590e01
commit
bdfdc2bb83
@ -62,10 +62,10 @@ u8_t *inet_ntoa(u32_t addr); /* returns ptr to static buffer; not reentrant! */
|
|||||||
#endif /* ntohl */
|
#endif /* ntohl */
|
||||||
|
|
||||||
#if BYTE_ORDER == BIG_ENDIAN
|
#if BYTE_ORDER == BIG_ENDIAN
|
||||||
#define htons(x) (x)
|
#define htons(n) (n)
|
||||||
#define ntohs(x) (x)
|
#define ntohs(n) (n)
|
||||||
#define htonl(x) (x)
|
#define htonl(n) (n)
|
||||||
#define ntohl(x) (x)
|
#define ntohl(n) (n)
|
||||||
#else
|
#else
|
||||||
#ifdef LWIP_PREFIX_BYTEORDER_FUNCS
|
#ifdef LWIP_PREFIX_BYTEORDER_FUNCS
|
||||||
/* workaround for naming collisions on some platforms */
|
/* 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 htonl lwip_htonl
|
||||||
#define ntohl lwip_ntohl
|
#define ntohl lwip_ntohl
|
||||||
#endif
|
#endif
|
||||||
u16_t htons(u16_t x);
|
u16_t htons(u16_t n);
|
||||||
u16_t ntohs(u16_t x);
|
u16_t ntohs(u16_t n);
|
||||||
u32_t htonl(u32_t x);
|
u32_t htonl(u32_t n);
|
||||||
u32_t ntohl(u32_t x);
|
u32_t ntohl(u32_t n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __LWIP_INET_H__ */
|
#endif /* __LWIP_INET_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user