diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-04 03:17:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-04 03:17:07 +0000 |
commit | 4bb1ee5415bfd5219eaf941d40b3eacc24630896 (patch) | |
tree | f8177d393b190880e3709edc2771b62c00174970 /sys | |
parent | 070270753eb548ade327461eeabe1385897dd253 (diff) |
Fix NTOHS and HTONS macros.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/vax/include/endian.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/include/endian.h b/sys/arch/vax/include/endian.h index cf1970eb989..90707f9cec5 100644 --- a/sys/arch/vax/include/endian.h +++ b/sys/arch/vax/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.5 1997/04/04 03:05:36 millert Exp $ */ +/* $OpenBSD: endian.h,v 1.6 1997/04/04 03:17:06 millert Exp $ */ /* $NetBSD: endian.h,v 1.8 1996/10/13 03:28:00 christos Exp $ */ /* @@ -107,9 +107,9 @@ __END_DECLS * Macros for network/external number representation conversion. */ #define NTOHL(x) (x) = ntohl((u_int32_t)(x)) -#define NTOHS(x) (x) = ntohs((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_int32_t)(x)) +#define HTONS(x) (x) = htons((u_int16_t)(x)) #endif /* _POSIX_SOURCE */ |