From 26bf2499c42c994d91e3a86ae74b1a2d8b829c9f Mon Sep 17 00:00:00 2001 From: tholo <> Date: Mon, 25 Mar 1996 22:06:55 +0000 Subject: Pull in prototypes Do the right thing in presense of __STDC__ --- src/lib/libc/net/ntohs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/libc/net/ntohs.c') 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 $"; #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; -- cgit v1.2.3-55-g6feb