diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-06-25 12:32:55 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-06-25 12:32:55 +0000 |
commit | c572c52a5526fc9e50a8fec655bd2d43eb2b7aa9 (patch) | |
tree | 8e7a9ac003675b28a44bc2a456f52469e5b47295 /sys/arch/mvme88k/include | |
parent | 696d35f3b13afe373a3def0699a693ad4c7f01c4 (diff) |
Big endian HTON?() macros should be (void)(x).
Diffstat (limited to 'sys/arch/mvme88k/include')
-rw-r--r-- | sys/arch/mvme88k/include/endian.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/arch/mvme88k/include/endian.h b/sys/arch/mvme88k/include/endian.h index c5e61bd0620..c53407aa1db 100644 --- a/sys/arch/mvme88k/include/endian.h +++ b/sys/arch/mvme88k/include/endian.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)endian.h 8.1 (Berkeley) 6/11/93 - * $Id: endian.h,v 1.5 1997/04/04 03:05:32 millert Exp $ + * $Id: endian.h,v 1.6 1997/06/25 12:32:51 downsj Exp $ */ #ifndef _ENDIAN_H_ @@ -76,17 +76,18 @@ __END_DECLS #define htonl(x) (x) #define htons(x) (x) -#define NTOHL(x) (x) -#define NTOHS(x) (x) -#define HTONL(x) (x) -#define HTONS(x) (x) +#define NTOHL(x) (void)(x) +#define NTOHS(x) (void)(x) +#define HTONL(x) (void)(x) +#define HTONS(x) (void)(x) #else -#define NTOHL(x) (x) = ntohl((u_int32_t)x) -#define NTOHS(x) (x) = ntohs((u_int16_t)x) -#define HTONL(x) (x) = htonl((u_int32_t)x) -#define HTONS(x) (x) = htons((u_int16_t)x) +#define NTOHL(x) (x) = ntohl((u_long)x) +#define NTOHS(x) (x) = ntohs((u_short)x) +#define HTONL(x) (x) = htonl((u_long)x) +#define HTONS(x) (x) = htons((u_short)x) + #endif #endif /* ! _POSIX_SOURCE */ #endif /* !_ENDIAN_H_ */ |