diff options
Diffstat (limited to 'src/lib/libc/net/htons.c')
| -rw-r--r-- | src/lib/libc/net/htons.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/htons.c b/src/lib/libc/net/htons.c index f0554f2166..e647d8c91e 100644 --- a/src/lib/libc/net/htons.c +++ b/src/lib/libc/net/htons.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: htons.c,v 1.4 1996/08/19 08:29:05 tholo Exp $"; | 7 | static char *rcsid = "$OpenBSD: htons.c,v 1.5 1996/12/12 03:19:55 tholo 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> | 
| @@ -12,12 +12,12 @@ static char *rcsid = "$OpenBSD: htons.c,v 1.4 1996/08/19 08:29:05 tholo Exp $"; | |||
| 12 | 12 | ||
| 13 | #undef htons | 13 | #undef htons | 
| 14 | 14 | ||
| 15 | unsigned short | 15 | u_int16_t | 
| 16 | #if __STDC__ | 16 | #if __STDC__ | 
| 17 | htons(unsigned short x) | 17 | htons(u_int16_t x) | 
| 18 | #else | 18 | #else | 
| 19 | htons(x) | 19 | htons(x) | 
| 20 | unsigned short x; | 20 | u_int16_t x; | 
| 21 | #endif | 21 | #endif | 
| 22 | { | 22 | { | 
| 23 | #if BYTE_ORDER == LITTLE_ENDIAN | 23 | #if BYTE_ORDER == LITTLE_ENDIAN | 
