summaryrefslogtreecommitdiff
path: root/nuttx/include/arpa
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-06 19:29:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-06 19:29:37 +0000
commit80f83b34163e00cf9237fa4ca81eeb88f3d8fb9f (patch)
tree619447df64ec7cc3aaa5e473e951f526aa9ced04 /nuttx/include/arpa
parent70da7ac2ae0b2ecc67e587d014da07f73a421f27 (diff)
downloadnuttx-80f83b34163e00cf9237fa4ca81eeb88f3d8fb9f.tar.gz
nuttx-80f83b34163e00cf9237fa4ca81eeb88f3d8fb9f.tar.bz2
nuttx-80f83b34163e00cf9237fa4ca81eeb88f3d8fb9f.zip
Incorporate Z80 bugfixes reported by Phillip Klaus Krause
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4270 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/arpa')
-rw-r--r--nuttx/include/arpa/inet.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/include/arpa/inet.h b/nuttx/include/arpa/inet.h
index 73b2f16fa..0380c5f77 100644
--- a/nuttx/include/arpa/inet.h
+++ b/nuttx/include/arpa/inet.h
@@ -69,10 +69,10 @@
((((unsigned short)(ns)) >> 8) & 0x00ff))
# define HTONL(nl) \
(unsigned long) \
- (((((unsigned long)(nl)) & 0x000000ffL) << 24) | \
- ((((unsigned long)(nl)) & 0x0000ff00L) << 8) | \
- ((((unsigned long)(nl)) & 0x00ff0000L) >> 8) | \
- ((((unsigned long)(nl)) & 0xff000000L) >> 24))
+ (((((unsigned long)(nl)) & 0x000000ffUL) << 24) | \
+ ((((unsigned long)(nl)) & 0x0000ff00UL) << 8) | \
+ ((((unsigned long)(nl)) & 0x00ff0000UL) >> 8) | \
+ ((((unsigned long)(nl)) & 0xff000000UL) >> 24))
#endif
#define NTOHS(hs) HTONS(hs)