diff options
author | millert <> | 2002-02-19 19:39:38 +0000 |
---|---|---|
committer | millert <> | 2002-02-19 19:39:38 +0000 |
commit | 0be1f7d80eff8e3e86b037958be3ab5217ce9b59 (patch) | |
tree | 9e6b3b31919b853c473f13c35c4878ac3aef84ab /src/lib/libc/net/htons.c | |
parent | 97ec74faebf84f0ecbbf3706ec05647d012003c9 (diff) | |
download | openbsd-0be1f7d80eff8e3e86b037958be3ab5217ce9b59.tar.gz openbsd-0be1f7d80eff8e3e86b037958be3ab5217ce9b59.tar.bz2 openbsd-0be1f7d80eff8e3e86b037958be3ab5217ce9b59.zip |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'src/lib/libc/net/htons.c')
-rw-r--r-- | src/lib/libc/net/htons.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libc/net/htons.c b/src/lib/libc/net/htons.c index 47cf25952d..ded70712ea 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.6 1997/07/25 20:30:07 mickey Exp $"; | 7 | static char *rcsid = "$OpenBSD: htons.c,v 1.7 2002/02/19 19:39:36 millert 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,12 +13,7 @@ static char *rcsid = "$OpenBSD: htons.c,v 1.6 1997/07/25 20:30:07 mickey Exp $"; | |||
13 | #undef htons | 13 | #undef htons |
14 | 14 | ||
15 | u_int16_t | 15 | u_int16_t |
16 | #ifdef __STDC__ | ||
17 | htons(u_int16_t x) | 16 | htons(u_int16_t x) |
18 | #else | ||
19 | htons(x) | ||
20 | u_int16_t x; | ||
21 | #endif | ||
22 | { | 17 | { |
23 | #if BYTE_ORDER == LITTLE_ENDIAN | 18 | #if BYTE_ORDER == LITTLE_ENDIAN |
24 | u_char *s = (u_char *) &x; | 19 | u_char *s = (u_char *) &x; |