From 2f490723a2e673b2457f65c4b06cacb7d700a3e8 Mon Sep 17 00:00:00 2001 From: otto <> Date: Fri, 25 Mar 2005 13:24:12 +0000 Subject: ansify. ok deraadt@ moritz@ --- src/lib/libc/net/ntohl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/libc/net/ntohl.c') diff --git a/src/lib/libc/net/ntohl.c b/src/lib/libc/net/ntohl.c index 7d3e227e60..c8b2ca2bb5 100644 --- a/src/lib/libc/net/ntohl.c +++ b/src/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 @@ -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; -- cgit v1.2.3-55-g6feb