summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-27 19:51:43 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-27 19:51:43 +0000
commit1426b4b29f35310bdf6934b7ee3bb23a366414f0 (patch)
treec68b1ec8dcd3d5e59862615d73b7ce17d1421407
parent6b93e8af0a9bad0a2f001f55e05d244f58158987 (diff)
short and long are now u_int16_t and u_int32_t
-rw-r--r--sys/lib/libkern/htonl.c5
-rw-r--r--sys/lib/libkern/htons.c5
-rw-r--r--sys/lib/libkern/ntohl.c5
-rw-r--r--sys/lib/libkern/ntohs.c5
4 files changed, 12 insertions, 8 deletions
diff --git a/sys/lib/libkern/htonl.c b/sys/lib/libkern/htonl.c
index eba75f7e2c6..9ff932a1b1d 100644
--- a/sys/lib/libkern/htonl.c
+++ b/sys/lib/libkern/htonl.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: htonl.c,v 1.3 1996/11/27 19:51:39 niklas Exp $ */
/* $NetBSD: htonl.c,v 1.6.6.1 1996/05/29 23:47:55 cgd Exp $ */
/*
@@ -14,9 +15,9 @@ static char *rcsid = "$NetBSD: htonl.c,v 1.6.6.1 1996/05/29 23:47:55 cgd Exp $";
#undef htonl
-unsigned long
+u_int32_t
htonl(x)
- unsigned long x;
+ u_int32_t x;
{
u_int32_t y = x;
diff --git a/sys/lib/libkern/htons.c b/sys/lib/libkern/htons.c
index 0b60f639f8e..0928801a8e2 100644
--- a/sys/lib/libkern/htons.c
+++ b/sys/lib/libkern/htons.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: htons.c,v 1.3 1996/11/27 19:51:40 niklas Exp $ */
/* $NetBSD: htons.c,v 1.6.6.1 1996/05/29 23:48:02 cgd Exp $ */
/*
@@ -14,9 +15,9 @@ static char *rcsid = "$NetBSD: htons.c,v 1.6.6.1 1996/05/29 23:48:02 cgd Exp $";
#undef htons
-unsigned short
+u_int16_t
htons(x)
- unsigned short x;
+ u_int16_t x;
{
#if BYTE_ORDER == LITTLE_ENDIAN
u_char *s = (u_char *) &x;
diff --git a/sys/lib/libkern/ntohl.c b/sys/lib/libkern/ntohl.c
index 167ee5f9b66..5d5d97e3351 100644
--- a/sys/lib/libkern/ntohl.c
+++ b/sys/lib/libkern/ntohl.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: ntohl.c,v 1.3 1996/11/27 19:51:41 niklas Exp $ */
/* $NetBSD: ntohl.c,v 1.6.6.1 1996/05/29 23:48:07 cgd Exp $ */
/*
@@ -14,9 +15,9 @@ static char *rcsid = "$NetBSD: ntohl.c,v 1.6.6.1 1996/05/29 23:48:07 cgd Exp $";
#undef ntohl
-unsigned long
+u_int32_t
ntohl(x)
- unsigned long x;
+ u_int32_t x;
{
u_int32_t y = x;
diff --git a/sys/lib/libkern/ntohs.c b/sys/lib/libkern/ntohs.c
index 33a8cf6497f..a5f870b70a2 100644
--- a/sys/lib/libkern/ntohs.c
+++ b/sys/lib/libkern/ntohs.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: ntohs.c,v 1.3 1996/11/27 19:51:42 niklas Exp $ */
/* $NetBSD: ntohs.c,v 1.5.6.1 1996/05/29 23:48:11 cgd Exp $ */
/*
@@ -14,9 +15,9 @@ static char *rcsid = "$NetBSD: ntohs.c,v 1.5.6.1 1996/05/29 23:48:11 cgd Exp $";
#undef ntohs
-unsigned short
+u_int16_t
ntohs(x)
- unsigned short x;
+ u_int16_t x;
{
#if BYTE_ORDER == LITTLE_ENDIAN
u_char *s = (u_char *) &x;