summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/htonl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/htonl.c')
-rw-r--r--sys/lib/libkern/htonl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/lib/libkern/htonl.c b/sys/lib/libkern/htonl.c
index ad1b47b98d2..2c72cbf0862 100644
--- a/sys/lib/libkern/htonl.c
+++ b/sys/lib/libkern/htonl.c
@@ -4,7 +4,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: htonl.c,v 1.5 2004/11/28 07:23:41 mickey Exp $";
+static char *rcsid = "$OpenBSD: htonl.c,v 1.6 2007/11/24 19:25:02 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -12,9 +12,10 @@ static char *rcsid = "$OpenBSD: htonl.c,v 1.5 2004/11/28 07:23:41 mickey Exp $";
#undef htonl
+u_int32_t htonl(u_int32_t);
+
u_int32_t
-htonl(x)
- u_int32_t x;
+htonl(u_int32_t x)
{
#if BYTE_ORDER == LITTLE_ENDIAN
u_char *s = (u_char *)&x;