From: Ben Gras Date: Tue, 10 Dec 2013 23:27:26 +0000 (+0100) Subject: X-Git-Tag: v3.3.0~453 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/invmod.png?a=commitdiff_plain;h=7d303e63115c37bdfb52abf8648c241cfc4e6caa;p=minix.git Change-Id: I0148722ecd96f88e4bc5c08b23c7997166ddb976 --- diff --git a/sys/sys/endian.h b/sys/sys/endian.h index 13083193e..ac5418c15 100644 --- a/sys/sys/endian.h +++ b/sys/sys/endian.h @@ -127,10 +127,10 @@ __END_DECLS #define htonl(x) bswap32(__CAST(uint32_t, (x))) #define htons(x) bswap16(__CAST(uint16_t, (x))) -#define NTOHL(x) ntohl(__CAST(uint32_t, (x))) -#define NTOHS(x) ntohs(__CAST(uint16_t, (x))) -#define HTONL(x) htonl(__CAST(uint32_t, (x))) -#define HTONS(x) htons(__CAST(uint16_t, (x))) +#define NTOHL(x) (x) = ntohl(__CAST(uint32_t, (x))) +#define NTOHS(x) (x) = ntohs(__CAST(uint16_t, (x))) +#define HTONL(x) (x) = htonl(__CAST(uint32_t, (x))) +#define HTONS(x) (x) = htons(__CAST(uint16_t, (x))) #endif /* LITTLE_ENDIAN || !defined(__lint__) */ /*