diff options
author | 2005-03-25 13:24:11 +0000 | |
---|---|---|
committer | 2005-03-25 13:24:11 +0000 | |
commit | db5b349cf7aa19c2b6169fbb65597f2e741714ab (patch) | |
tree | 3225f0ae035a80a4448da2c70fd7f41f085c275b /lib/libc/net/ntohl.c | |
parent | whitespace (diff) | |
download | wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.tar.xz wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.zip |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/ntohl.c')
-rw-r--r-- | lib/libc/net/ntohl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/net/ntohl.c b/lib/libc/net/ntohl.c index 7d3e227e607..c8b2ca2bb5a 100644 --- a/lib/libc/net/ntohl.c +++ b/lib/libc/net/ntohl.c @@ -4,7 +4,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: ntohl.c,v 1.4 1996/12/12 03:19:56 tholo Exp $"; +static char *rcsid = "$OpenBSD: ntohl.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: ntohl.c,v 1.4 1996/12/12 03:19:56 tholo Exp $"; #undef ntohl u_int32_t -ntohl(x) - u_int32_t x; +ntohl(u_int32_t x) { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *)&x; |