diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-04 03:05:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-04 03:05:38 +0000 |
commit | 070270753eb548ade327461eeabe1385897dd253 (patch) | |
tree | d6302609fa972f49c304a6c5b4440c178da886d1 /sys/arch/pmax/include | |
parent | acb1068371a2e2eb0b7cd006968611ceda63862a (diff) |
Define in_addr_t and in_port_t everywhere but use u_intXX_t for
htonl and friends.
Diffstat (limited to 'sys/arch/pmax/include')
-rw-r--r-- | sys/arch/pmax/include/endian.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/pmax/include/endian.h b/sys/arch/pmax/include/endian.h index d9dee656d27..3224ab1890b 100644 --- a/sys/arch/pmax/include/endian.h +++ b/sys/arch/pmax/include/endian.h @@ -67,10 +67,10 @@ typedef u_int32_t in_addr_t; typedef u_int16_t in_port_t; __BEGIN_DECLS -in_addr_t htonl __P((in_addr_t)); -in_port_t htons __P((in_port_t)); -in_addr_t ntohl __P((in_addr_t)); -in_port_t ntohs __P((in_port_t)); +u_int32_t htonl __P((u_int32_t)); +u_int16_t htons __P((u_int16_t)); +u_int32_t ntohl __P((u_int32_t)); +u_int16_t ntohs __P((u_int16_t)); __END_DECLS /* @@ -89,10 +89,10 @@ __END_DECLS #else -#define NTOHL(x) (x) = ntohl((in_addr_t)x) -#define NTOHS(x) (x) = ntohs((in_port_t)x) -#define HTONL(x) (x) = htonl((in_addr_t)x) -#define HTONS(x) (x) = htons((in_port_t)x) +#define NTOHL(x) (x) = ntohl((u_int32_t)x) +#define NTOHS(x) (x) = ntohs((u_int16_t)x) +#define HTONL(x) (x) = htonl((u_int32_t)x) +#define HTONS(x) (x) = htons((u_int16_t)x) #endif #endif /* ! _POSIX_SOURCE */ #endif /* !_ENDIAN_H_ */ |