diff options
author | grr <grr@cvs.openbsd.org> | 1997-06-24 18:15:03 +0000 |
---|---|---|
committer | grr <grr@cvs.openbsd.org> | 1997-06-24 18:15:03 +0000 |
commit | 235be887e19f84e3e5d1e0cba02ff77615753b8e (patch) | |
tree | 0d3dade52d2ab0ab38d8e7075f68f1bad2cbe53e /sys/arch/sparc/include | |
parent | 9c33fa507fe26ac5b626bb0e1aff44a6441d3af9 (diff) |
The HTONS class of macros are defined as HTONS(x) <- (void) (x), which
really doesn't make a lot of sense if you're actually going to use these
as some recent changes to netinet/* want to do. (x) or (u_int*_t) (x)
would be the ticket, and since the rest of the ports settle for (x)...
Note that powerpc has this same problem and needs to be fixed!
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r-- | sys/arch/sparc/include/endian.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc/include/endian.h b/sys/arch/sparc/include/endian.h index 8a90a04bb50..a899e0cea2f 100644 --- a/sys/arch/sparc/include/endian.h +++ b/sys/arch/sparc/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.4 1997/04/04 03:05:35 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.5 1997/06/24 18:15:02 grr Exp $ */ /* $NetBSD: endian.h,v 1.3 1996/02/13 17:04:58 christos Exp $ */ /* @@ -73,10 +73,10 @@ __END_DECLS #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) +#define NTOHL(x) (x) +#define NTOHS(x) (x) +#define HTONL(x) (x) +#define HTONS(x) (x) #else |