diff options
Diffstat (limited to 'src/lib/libc/net/htonl.c')
-rw-r--r-- | src/lib/libc/net/htonl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/net/htonl.c b/src/lib/libc/net/htonl.c index 73b7432731..f104e190a2 100644 --- a/src/lib/libc/net/htonl.c +++ b/src/lib/libc/net/htonl.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: htonl.c,v 1.4 1996/12/12 03:19:55 tholo Exp $"; | 7 | static char *rcsid = "$OpenBSD: htonl.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: htonl.c,v 1.4 1996/12/12 03:19:55 tholo Exp $"; | |||
13 | #undef htonl | 13 | #undef htonl |
14 | 14 | ||
15 | u_int32_t | 15 | u_int32_t |
16 | htonl(x) | 16 | htonl(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; |