source:
trunk/minix/lib/ip/hton.c@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 316 bytes |
Line | |
---|---|
1 | /* |
2 | hton.c |
3 | */ |
4 | |
5 | #include <sys/types.h> |
6 | #include <minix/config.h> |
7 | #include <net/hton.h> |
8 | |
9 | u16_t _tmp; |
10 | u32_t _tmp_l; |
11 | |
12 | #if _WORD_SIZE > 2 |
13 | u16_t (htons)(u16_t x) { return HTONS(x); } |
14 | u16_t (ntohs)(u16_t x) { return NTOHS(x); } |
15 | u32_t (htonl)(u32_t x) { return HTONL(x); } |
16 | u32_t (ntohl)(u32_t x) { return NTOHL(x); } |
17 | #endif |
18 |
Note:
See TracBrowser
for help on using the repository browser.