summaryrefslogtreecommitdiff
path: root/nuttx/include/arpa
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-10 13:28:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-10 13:28:01 +0000
commitaa6af4588d7552b583662c9063d074a1b4f2d931 (patch)
treef054759f87b20fac87b65a3edf3d0cd987229547 /nuttx/include/arpa
parent7b9c0155d6b254db6a316043fabcc9074ca0d1e0 (diff)
downloadnuttx-aa6af4588d7552b583662c9063d074a1b4f2d931.tar.gz
nuttx-aa6af4588d7552b583662c9063d074a1b4f2d931.tar.bz2
nuttx-aa6af4588d7552b583662c9063d074a1b4f2d931.zip
Debugging TELNET NSH (still problems)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@434 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/arpa')
-rw-r--r--nuttx/include/arpa/inet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/arpa/inet.h b/nuttx/include/arpa/inet.h
index 91f698f42..ee0b1be70 100644
--- a/nuttx/include/arpa/inet.h
+++ b/nuttx/include/arpa/inet.h
@@ -62,7 +62,7 @@
# define HTONL(nl) (nl)
#else
# define HTONS(ns) \
- (uint16)((((uint16) (ns)) << 8) | (((uint16) (ns)) >> 8))
+ (uint16)(((((uint16)(ns)) & 0xff) << 8) | ((((uint16)(ns)) >> 8) & 0xff))
# define HTONL(nl) \
((((nl) & 0xff) << 24) | (((nl) & 0xff00) << 8) | \
(((nl) & 0xff0000) >> 8) | (((nl) & 0xff000000) >> 24))