[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] libc: ntohs gefixt



! libc: Wenn ntohs tatsaechlich nur auf 16 Bit arbeitet, tut das auch

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/lib/posix/net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/lib/posix/net.c b/src/modules/lib/posix/net.c
index 3a89ef4..f009585 100644
--- a/src/modules/lib/posix/net.c
+++ b/src/modules/lib/posix/net.c
@@ -54,7 +54,7 @@ unsigned long int ntohl(unsigned long int netlong)
 
 unsigned short int ntohs(unsigned short int netshort)
 {
-    return big_endian_dword(netshort);
+    return big_endian_word(netshort);
 }
 
 /**
-- 
1.6.0.2