source: trunk/minix/lib/ip/hton.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 316 bytes
RevLine 
[9]1/*
2hton.c
3*/
4
5#include <sys/types.h>
6#include <minix/config.h>
7#include <net/hton.h>
8
9u16_t _tmp;
10u32_t _tmp_l;
11
12#if _WORD_SIZE > 2
13u16_t (htons)(u16_t x) { return HTONS(x); }
14u16_t (ntohs)(u16_t x) { return NTOHS(x); }
15u32_t (htonl)(u32_t x) { return HTONL(x); }
16u32_t (ntohl)(u32_t x) { return NTOHL(x); }
17#endif
18
Note: See TracBrowser for help on using the repository browser.