diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-08-07 00:38:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-08-07 00:38:34 +0000 |
commit | 6199f15e3e0651e8399ad97e919a96d69d128ee2 (patch) | |
tree | cde8dbb44682b9bafafa3ec82a63352162d5cf59 /sys/lib/libkern/ntohs.c | |
parent | f8b1d50fcd985a3171e1d491c63c553aff62c2a7 (diff) |
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/ntohs.c')
-rw-r--r-- | sys/lib/libkern/ntohs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/lib/libkern/ntohs.c b/sys/lib/libkern/ntohs.c index a5f870b70a2..e677ed1ed89 100644 --- a/sys/lib/libkern/ntohs.c +++ b/sys/lib/libkern/ntohs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntohs.c,v 1.3 1996/11/27 19:51:42 niklas Exp $ */ +/* $OpenBSD: ntohs.c,v 1.4 2004/08/07 00:38:32 deraadt Exp $ */ /* $NetBSD: ntohs.c,v 1.5.6.1 1996/05/29 23:48:11 cgd Exp $ */ /* @@ -16,8 +16,7 @@ static char *rcsid = "$NetBSD: ntohs.c,v 1.5.6.1 1996/05/29 23:48:11 cgd Exp $"; #undef ntohs u_int16_t -ntohs(x) - u_int16_t x; +ntohs(u_int16_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x; |