diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-08-08 08:27:49 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-08-08 08:27:49 +0000 |
commit | c6af50ae96c114059441edde31a2879102e32d99 (patch) | |
tree | e77d44cd72b4d881fb3461d76bdd50f77adc0966 /sys/arch/sparc/include/endian.h | |
parent | c1492b0f5209b759b0ab6624db56b310c28e48e2 (diff) |
Mostly sync to NetBSD-current 970804.
GENERIC currently compiles and runs; some devices (isp) are not complete and
not yet enabled.
Diffstat (limited to 'sys/arch/sparc/include/endian.h')
-rw-r--r-- | sys/arch/sparc/include/endian.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/include/endian.h b/sys/arch/sparc/include/endian.h index c536790f9ef..302cc658d93 100644 --- a/sys/arch/sparc/include/endian.h +++ b/sys/arch/sparc/include/endian.h @@ -1,5 +1,5 @@ -/* $OpenBSD: endian.h,v 1.6 1997/06/25 12:41:42 grr Exp $ */ -/* $NetBSD: endian.h,v 1.3 1996/02/13 17:04:58 christos Exp $ */ +/* $OpenBSD: endian.h,v 1.7 1997/08/08 08:26:15 downsj Exp $ */ +/* $NetBSD: endian.h,v 1.6 1996/10/11 00:43:00 christos Exp $ */ /* * Copyright (c) 1987, 1991 Regents of the University of California. @@ -87,10 +87,10 @@ __END_DECLS #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((in_addr_t)x) +#define NTOHS(x) (x) = ntohs((in_port_t)x) +#define HTONL(x) (x) = htonl((in_addr_t)x) +#define HTONS(x) (x) = htons((in_port_t)x) #endif #endif /* _MACHINE_ENDIAN_H_ */ |