diff options
Diffstat (limited to 'src/lib/libc/net/ntohs.c')
-rw-r--r-- | src/lib/libc/net/ntohs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libc/net/ntohs.c b/src/lib/libc/net/ntohs.c index 93ab83ee4d..6e180c16ab 100644 --- a/src/lib/libc/net/ntohs.c +++ b/src/lib/libc/net/ntohs.c | |||
@@ -15,8 +15,12 @@ static char *rcsid = "$NetBSD: ntohs.c,v 1.5 1995/04/28 23:25:23 jtc Exp $"; | |||
15 | #undef ntohs | 15 | #undef ntohs |
16 | 16 | ||
17 | unsigned short | 17 | unsigned short |
18 | #if __STDC__ | ||
19 | ntohs(unsigned short x) | ||
20 | #else | ||
18 | ntohs(x) | 21 | ntohs(x) |
19 | unsigned short x; | 22 | unsigned short x; |
23 | #endif | ||
20 | { | 24 | { |
21 | #if BYTE_ORDER == LITTLE_ENDIAN | 25 | #if BYTE_ORDER == LITTLE_ENDIAN |
22 | u_char *s = (u_char *) &x; | 26 | u_char *s = (u_char *) &x; |