summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/htonl.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1996-11-27 19:51:39 +0000
committerniklas <niklas@openbsd.org>1996-11-27 19:51:39 +0000
commit972ec0e597a3ffe83e02f258f556130e38bce7ab (patch)
treece2f4c837d851a89e287884145302f74c060cfc7 /sys/lib/libkern/htonl.c
parentinclude libkern.h prior to stand.h to not to collide m{in,ax} definitions. (diff)
downloadwireguard-openbsd-972ec0e597a3ffe83e02f258f556130e38bce7ab.tar.xz
wireguard-openbsd-972ec0e597a3ffe83e02f258f556130e38bce7ab.zip
short and long are now u_int16_t and u_int32_t
Diffstat (limited to 'sys/lib/libkern/htonl.c')
-rw-r--r--sys/lib/libkern/htonl.c5
1 files changed, 3 insertions, 2 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;