minix/lib/ip/hton.c

19 lines
316 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/*
hton.c
*/
#include <sys/types.h>
#include <minix/config.h>
#include <net/hton.h>
u16_t _tmp;
u32_t _tmp_l;
2005-07-27 13:57:59 +02:00
#if _WORD_SIZE > 2
u16_t (htons)(u16_t x) { return HTONS(x); }
u16_t (ntohs)(u16_t x) { return NTOHS(x); }
u32_t (htonl)(u32_t x) { return HTONL(x); }
u32_t (ntohl)(u32_t x) { return NTOHL(x); }
#endif