diff options
author | 2004-08-07 00:38:32 +0000 | |
---|---|---|
committer | 2004-08-07 00:38:32 +0000 | |
commit | a26aa41994e8a6961f009870b31f84fec938f9c8 (patch) | |
tree | b69a5bc2e1eeaca538d3783d02cfd53f88cb19db /sys/lib/libkern/htons.c | |
parent | sync (diff) | |
download | wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.tar.xz wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.zip |
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/htons.c')
-rw-r--r-- | sys/lib/libkern/htons.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/lib/libkern/htons.c b/sys/lib/libkern/htons.c index 0928801a8e2..916ecc685bc 100644 --- a/sys/lib/libkern/htons.c +++ b/sys/lib/libkern/htons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: htons.c,v 1.3 1996/11/27 19:51:40 niklas Exp $ */ +/* $OpenBSD: htons.c,v 1.4 2004/08/07 00:38:32 deraadt Exp $ */ /* $NetBSD: htons.c,v 1.6.6.1 1996/05/29 23:48:02 cgd Exp $ */ /* @@ -16,8 +16,7 @@ static char *rcsid = "$NetBSD: htons.c,v 1.6.6.1 1996/05/29 23:48:02 cgd Exp $"; #undef htons u_int16_t -htons(x) - u_int16_t x; +htons(u_int16_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x; |