summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/endian.h10
-rw-r--r--sys/arch/arc/include/endian.h10
-rw-r--r--sys/arch/m68k/include/endian.h10
-rw-r--r--sys/arch/mvme88k/include/endian.h19
-rw-r--r--sys/arch/mvme88k/machine/endian.h10
-rw-r--r--sys/arch/pmax/include/endian.h8
-rw-r--r--sys/arch/powerpc/include/endian.h10
-rw-r--r--sys/arch/wgrisc/include/endian.h10
8 files changed, 44 insertions, 43 deletions
diff --git a/sys/arch/alpha/include/endian.h b/sys/arch/alpha/include/endian.h
index f2852a785bb..5c4a852c700 100644
--- a/sys/arch/alpha/include/endian.h
+++ b/sys/arch/alpha/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.4 1997/04/04 03:05:28 millert Exp $ */
+/* $OpenBSD: endian.h,v 1.5 1997/06/25 12:32:48 downsj Exp $ */
/* $NetBSD: endian.h,v 1.3 1996/10/13 19:57:59 cgd Exp $ */
/*
@@ -77,10 +77,10 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#else
diff --git a/sys/arch/arc/include/endian.h b/sys/arch/arc/include/endian.h
index 694fa5e0cbd..d893b4c6a15 100644
--- a/sys/arch/arc/include/endian.h
+++ b/sys/arch/arc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.3 1997/04/04 03:05:29 millert Exp $ */
+/* $OpenBSD: endian.h,v 1.4 1997/06/25 12:32:49 downsj Exp $ */
/* $NetBSD: endian.h,v 1.4 1994/10/26 21:09:38 cgd Exp $ */
/*
@@ -82,10 +82,10 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#else
diff --git a/sys/arch/m68k/include/endian.h b/sys/arch/m68k/include/endian.h
index a1467a56a1c..02875635f86 100644
--- a/sys/arch/m68k/include/endian.h
+++ b/sys/arch/m68k/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.6 1997/04/04 03:05:31 millert Exp $ */
+/* $OpenBSD: endian.h,v 1.7 1997/06/25 12:32:50 downsj Exp $ */
/* $NetBSD: endian.h,v 1.10 1996/10/13 02:59:55 christos Exp $ */
/*
@@ -145,10 +145,10 @@ __END_DECLS
#define htonl(x) htobe32(x)
#define htons(x) htobe16(x)
-#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) (void)(x)
+#define NTOHS(x) (void)(x)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#endif /* _POSIX_SOURCE */
diff --git a/sys/arch/mvme88k/include/endian.h b/sys/arch/mvme88k/include/endian.h
index c5e61bd0620..c53407aa1db 100644
--- a/sys/arch/mvme88k/include/endian.h
+++ b/sys/arch/mvme88k/include/endian.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)endian.h 8.1 (Berkeley) 6/11/93
- * $Id: endian.h,v 1.5 1997/04/04 03:05:32 millert Exp $
+ * $Id: endian.h,v 1.6 1997/06/25 12:32:51 downsj Exp $
*/
#ifndef _ENDIAN_H_
@@ -76,17 +76,18 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#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((u_long)x)
+#define NTOHS(x) (x) = ntohs((u_short)x)
+#define HTONL(x) (x) = htonl((u_long)x)
+#define HTONS(x) (x) = htons((u_short)x)
+
#endif
#endif /* ! _POSIX_SOURCE */
#endif /* !_ENDIAN_H_ */
diff --git a/sys/arch/mvme88k/machine/endian.h b/sys/arch/mvme88k/machine/endian.h
index 154bfbd687f..490523f6f84 100644
--- a/sys/arch/mvme88k/machine/endian.h
+++ b/sys/arch/mvme88k/machine/endian.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)endian.h 8.1 (Berkeley) 6/11/93
- * $Id: endian.h,v 1.1 1997/03/03 19:30:24 rahnds Exp $
+ * $Id: endian.h,v 1.2 1997/06/25 12:32:52 downsj Exp $
*/
#ifndef _ENDIAN_H_
@@ -73,10 +73,10 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#else
diff --git a/sys/arch/pmax/include/endian.h b/sys/arch/pmax/include/endian.h
index 3224ab1890b..c2957e659fc 100644
--- a/sys/arch/pmax/include/endian.h
+++ b/sys/arch/pmax/include/endian.h
@@ -82,10 +82,10 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#else
diff --git a/sys/arch/powerpc/include/endian.h b/sys/arch/powerpc/include/endian.h
index 281a4094c5d..ba0604ae164 100644
--- a/sys/arch/powerpc/include/endian.h
+++ b/sys/arch/powerpc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.5 1997/06/24 20:50:42 grr Exp $ */
+/* $OpenBSD: endian.h,v 1.6 1997/06/25 12:32:53 downsj Exp $ */
/* $NetBSD: endian.h,v 1.2 1996/10/13 03:16:41 christos Exp $ */
/*-
@@ -71,10 +71,10 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#else
diff --git a/sys/arch/wgrisc/include/endian.h b/sys/arch/wgrisc/include/endian.h
index 57ef0088e79..1ec9259725a 100644
--- a/sys/arch/wgrisc/include/endian.h
+++ b/sys/arch/wgrisc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.2 1997/04/04 03:05:37 millert Exp $ */
+/* $OpenBSD: endian.h,v 1.3 1997/06/25 12:32:54 downsj Exp $ */
/* $NetBSD: endian.h,v 1.4 1994/10/26 21:09:38 cgd Exp $ */
/*
@@ -82,10 +82,10 @@ __END_DECLS
#define htonl(x) (x)
#define htons(x) (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)
+#define HTONL(x) (void)(x)
+#define HTONS(x) (void)(x)
#else