Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/arch/sh5/include Pull up revision 1.4 (requested by...
details: https://anonhg.NetBSD.org/src/rev/923f7b995444
branches: netbsd-2-0
changeset: 561366:923f7b995444
user: tron <tron%NetBSD.org@localhost>
date: Mon Jun 14 17:58:23 2004 +0000
description:
Pull up revision 1.4 (requested by kleink in ticket #467):
Reflect <sys/endian.h> rev. 1.4: make htonl() et al. arguments and
results uint{16,32}_t. Noted by Ian Zagorskih.
diffstat:
sys/arch/sh5/include/endian_machdep.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (24 lines):
diff -r d3b38e66212c -r 923f7b995444 sys/arch/sh5/include/endian_machdep.h
--- a/sys/arch/sh5/include/endian_machdep.h Mon Jun 14 17:58:17 2004 +0000
+++ b/sys/arch/sh5/include/endian_machdep.h Mon Jun 14 17:58:23 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: endian_machdep.h,v 1.3 2002/08/30 10:50:07 scw Exp $ */
+/* $NetBSD: endian_machdep.h,v 1.3.10.1 2004/06/14 17:58:23 tron Exp $ */
#ifdef __LITTLE_ENDIAN__
#define _BYTE_ORDER _LITTLE_ENDIAN
@@ -11,10 +11,10 @@
#include <sh5/byte_swap.h>
#if _BYTE_ORDER == _LITTLE_ENDIAN
-#define ntohl(x) ((in_addr_t)_sh5_bswap32((in_addr_t)(x)))
-#define ntohs(x) ((in_port_t)_sh5_bswap16((in_port_t)(x)))
-#define htonl(x) ((in_addr_t)_sh5_bswap32((in_addr_t)(x)))
-#define htons(x) ((in_port_t)_sh5_bswap16((in_port_t)(x)))
+#define ntohl(x) ((uint32_t)_sh5_bswap32((uint32_t)(x)))
+#define ntohs(x) ((uint16_t)_sh5_bswap16((uint16_t)(x)))
+#define htonl(x) ((uint32_t)_sh5_bswap32((uint32_t)(x)))
+#define htons(x) ((uint16_t)_sh5_bswap16((uint16_t)(x)))
#endif
#endif /* __GNUC__ */
Home |
Main Index |
Thread Index |
Old Index