Back out previous; this is a bigger problem than I expected.

This commit is contained in:
thorpej 1996-08-14 00:32:53 +00:00
parent a05a1045f7
commit f124a6aaa9
2 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: endian.h,v 1.8 1996/08/14 00:09:01 thorpej Exp $ */
/* $NetBSD: endian.h,v 1.9 1996/08/14 00:32:53 thorpej Exp $ */
/*
* Copyright (c) 1987, 1991 Regents of the University of California.
@ -68,10 +68,10 @@ __END_DECLS
* Macros for network/external number representation conversion.
*/
#if BYTE_ORDER == BIG_ENDIAN && !defined(lint)
#define ntohl(x) ((u_long)(x))
#define ntohs(x) ((u_short)(x))
#define htonl(x) ((u_long)(x))
#define htons(x) ((u_short)(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)

View File

@ -1,4 +1,4 @@
/* $NetBSD: endian.h,v 1.4 1996/08/14 00:07:35 thorpej Exp $ */
/* $NetBSD: endian.h,v 1.5 1996/08/14 00:33:00 thorpej Exp $ */
/*
* Copyright (c) 1987, 1991 Regents of the University of California.
@ -64,10 +64,10 @@ __END_DECLS
* Macros for network/external number representation conversion.
*/
#if BYTE_ORDER == BIG_ENDIAN && !defined(lint)
#define ntohl(x) ((u_long)(x))
#define ntohs(x) ((u_short)(x))
#define htonl(x) ((u_long)(x))
#define htons(x) ((u_short)(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)