summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/htonl.c
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-04-05 19:41:54 +0000
committerMystery Man <unknown@mandriva.org>2005-04-05 19:41:54 +0000
commit1d9a4b73a37c6e942f909c2d42ca13b5c47e8362 (patch)
tree5bab4266bc57a31d97ac6a8badc2ede721a42c9c /mdk-stage1/dietlibc/lib/htonl.c
parent4691e29d1228b10abbe586c5ecb87ec9e13bd3ec (diff)
downloaddrakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar
drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar.gz
drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar.bz2
drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar.xz
drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.zip
This commit was manufactured by cvs2svn to create tag 'V10_2_20mdk'.V10_2_20mdk
Diffstat (limited to 'mdk-stage1/dietlibc/lib/htonl.c')
-rw-r--r--mdk-stage1/dietlibc/lib/htonl.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/mdk-stage1/dietlibc/lib/htonl.c b/mdk-stage1/dietlibc/lib/htonl.c
deleted file mode 100644
index 4096d04f5..000000000
--- a/mdk-stage1/dietlibc/lib/htonl.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <endian.h>
-#include <netinet/in.h>
-
-uint32_t htonl(uint32_t hostlong) {
-#if __BYTE_ORDER==__LITTLE_ENDIAN
- return (hostlong>>24) | ((hostlong&0xff0000)>>8) |
- ((hostlong&0xff00)<<8) | (hostlong<<24);
-#else
- return hostlong;
-#endif
-}
-
-uint32_t ntohl(uint32_t hostlong) __attribute__((weak,alias("htonl")));