diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-03-25 13:24:13 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-03-25 13:24:13 +0000 |
commit | 367caa05f7f8d7687477fb03be7607b79e055127 (patch) | |
tree | 61380116a34433b437ea9412277e0cf044dce992 /lib/libc/net/htonl.c | |
parent | ad418525c7ffd9248e6cc7a6aa70d5fbfa124ff5 (diff) |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/htonl.c')
-rw-r--r-- | lib/libc/net/htonl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/net/htonl.c b/lib/libc/net/htonl.c index 73b74327317..f104e190a2d 100644 --- a/lib/libc/net/htonl.c +++ b/lib/libc/net/htonl.c @@ -4,7 +4,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: htonl.c,v 1.4 1996/12/12 03:19:55 tholo Exp $"; +static char *rcsid = "$OpenBSD: htonl.c,v 1.5 2005/03/25 13:24:12 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -13,8 +13,7 @@ static char *rcsid = "$OpenBSD: htonl.c,v 1.4 1996/12/12 03:19:55 tholo Exp $"; #undef htonl 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; |