summaryrefslogtreecommitdiff
path: root/lib/libc/net/htons.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-12-12 03:19:57 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-12-12 03:19:57 +0000
commitc3e66e3b4942f97e0b6abb011835f0c435a82dd1 (patch)
tree240f2f48917715ea45ba4b78f9c9babd0f6eaafc /lib/libc/net/htons.c
parentdf148f708e82825f16f565836cd13efc4541d6db (diff)
Update {hton,ntoh}[ls] argument and return types to match changes in
<machine/endian.h>
Diffstat (limited to 'lib/libc/net/htons.c')
-rw-r--r--lib/libc/net/htons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/htons.c b/lib/libc/net/htons.c
index f0554f21663..e647d8c91e4 100644
--- a/lib/libc/net/htons.c
+++ b/lib/libc/net/htons.c
@@ -4,7 +4,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: htons.c,v 1.4 1996/08/19 08:29:05 tholo Exp $";
+static char *rcsid = "$OpenBSD: htons.c,v 1.5 1996/12/12 03:19:55 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#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 $";
#undef htons
-unsigned short
+u_int16_t
#if __STDC__
-htons(unsigned short x)
+htons(u_int16_t x)
#else
htons(x)
- unsigned short x;
+ u_int16_t x;
#endif
{
#if BYTE_ORDER == LITTLE_ENDIAN