diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 22:06:56 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 22:06:56 +0000 |
commit | b980942d8b8cc852140b7d8cb64b0c0815c149b5 (patch) | |
tree | a53367edb6ba7c1c69bf95352e3c5b766365a1d5 /lib/libc/net/ntohs.c | |
parent | d18d18cf5ea7a4b8b9420f1dcab6ecc317fe9fd8 (diff) |
Pull in prototypes
Do the right thing in presense of __STDC__
Diffstat (limited to 'lib/libc/net/ntohs.c')
-rw-r--r-- | lib/libc/net/ntohs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/net/ntohs.c b/lib/libc/net/ntohs.c index 93ab83ee4d8..6e180c16ab2 100644 --- a/lib/libc/net/ntohs.c +++ b/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 $"; #undef ntohs unsigned short +#if __STDC__ +ntohs(unsigned short x) +#else ntohs(x) unsigned short x; +#endif { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x; |