summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/ntohs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/ntohs.c')
-rw-r--r--sys/lib/libkern/ntohs.c5
1 files changed, 3 insertions, 2 deletions
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;