diff options
author | Mystery Man <unknown@mandriva.org> | 2004-06-15 16:50:22 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2004-06-15 16:50:22 +0000 |
commit | 8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch) | |
tree | 544a377d0ea57462110009fbbbfd14473390e2a1 /mdk-stage1/dietlibc/lib/htons.c | |
parent | b5dc638815c772056e07cd013f5b1674900456d5 (diff) | |
download | drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.gz drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.bz2 drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.xz drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.zip |
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'mdk-stage1/dietlibc/lib/htons.c')
-rw-r--r-- | mdk-stage1/dietlibc/lib/htons.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mdk-stage1/dietlibc/lib/htons.c b/mdk-stage1/dietlibc/lib/htons.c deleted file mode 100644 index a64483174..000000000 --- a/mdk-stage1/dietlibc/lib/htons.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <endian.h> -#include <netinet/in.h> - -uint16_t htons(uint16_t hostshort) { -#if __BYTE_ORDER==__LITTLE_ENDIAN - return ((hostshort>>8)&0xff) | (hostshort<<8); -#else - return hostshort; -#endif -} - -uint16_t ntohs(uint16_t hostshort) __attribute__((weak,alias("htons"))); |