diff options
Diffstat (limited to 'src/lib/libc/net/ntohl.c')
-rw-r--r-- | src/lib/libc/net/ntohl.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
4 | */ | 4 | */ |
5 | 5 | ||
6 | #if defined(LIBC_SCCS) && !defined(lint) | 6 | #if defined(LIBC_SCCS) && !defined(lint) |
7 | static char *rcsid = "$OpenBSD: ntohl.c,v 1.4 1996/12/12 03:19:56 tholo Exp $"; | 7 | static char *rcsid = "$OpenBSD: ntohl.c,v 1.5 2005/03/25 13:24:12 otto Exp $"; |
8 | #endif /* LIBC_SCCS and not lint */ | 8 | #endif /* LIBC_SCCS and not lint */ |
9 | 9 | ||
10 | #include <sys/types.h> | 10 | #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 $"; | |||
13 | #undef ntohl | 13 | #undef ntohl |
14 | 14 | ||
15 | u_int32_t | 15 | u_int32_t |
16 | ntohl(x) | 16 | ntohl(u_int32_t x) |
17 | u_int32_t x; | ||
18 | { | 17 | { |
19 | #if BYTE_ORDER == LITTLE_ENDIAN | 18 | #if BYTE_ORDER == LITTLE_ENDIAN |
20 | u_char *s = (u_char *)&x; | 19 | u_char *s = (u_char *)&x; |