+/* $OpenBSD: htonl.c,v 1.3 1996/11/27 19:51:39 niklas Exp $ */
/* $NetBSD: htonl.c,v 1.6.6.1 1996/05/29 23:47:55 cgd Exp $ */
/*
#undef htonl
-unsigned long
+u_int32_t
htonl(x)
- unsigned long x;
+ u_int32_t x;
{
u_int32_t y = x;
+/* $OpenBSD: htons.c,v 1.3 1996/11/27 19:51:40 niklas Exp $ */
/* $NetBSD: htons.c,v 1.6.6.1 1996/05/29 23:48:02 cgd Exp $ */
/*
#undef htons
-unsigned short
+u_int16_t
htons(x)
- unsigned short x;
+ u_int16_t x;
{
#if BYTE_ORDER == LITTLE_ENDIAN
u_char *s = (u_char *) &x;
+/* $OpenBSD: ntohl.c,v 1.3 1996/11/27 19:51:41 niklas Exp $ */
/* $NetBSD: ntohl.c,v 1.6.6.1 1996/05/29 23:48:07 cgd Exp $ */
/*
#undef ntohl
-unsigned long
+u_int32_t
ntohl(x)
- unsigned long x;
+ u_int32_t x;
{
u_int32_t y = x;
+/* $OpenBSD: ntohs.c,v 1.3 1996/11/27 19:51:42 niklas Exp $ */
/* $NetBSD: ntohs.c,v 1.5.6.1 1996/05/29 23:48:11 cgd Exp $ */
/*
#undef ntohs
-unsigned short
+u_int16_t
ntohs(x)
- unsigned short x;
+ u_int16_t x;
{
#if BYTE_ORDER == LITTLE_ENDIAN
u_char *s = (u_char *) &x;