aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-04-21 14:29:54 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-04-21 14:29:54 +0000
commit053fc4771a6d76d42bcb3027e25cd735ede656e8 (patch)
treecc0ac8ff43924d73ff3f86ae46708cc5d9894612 /winsup/cygwin
parent00c2208858043c814591b5f32171edd7b18e1804 (diff)
downloadnewlib-053fc4771a6d76d42bcb3027e25cd735ede656e8.zip
newlib-053fc4771a6d76d42bcb3027e25cd735ede656e8.tar.gz
newlib-053fc4771a6d76d42bcb3027e25cd735ede656e8.tar.bz2
* include/asm/byteorder.h (__ntohl): Fix the missing uint32_t.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/include/asm/byteorder.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 56f45f4..c5e937d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2006-04-21 Lars Munch <lars@segv.dk>
+
+ * include/asm/byteorder.h (__ntohl): Fix the missing uint32_t.
+
2006-04-21 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::wait): Reorder setting
diff --git a/winsup/cygwin/include/asm/byteorder.h b/winsup/cygwin/include/asm/byteorder.h
index fd683ff..79e580f 100644
--- a/winsup/cygwin/include/asm/byteorder.h
+++ b/winsup/cygwin/include/asm/byteorder.h
@@ -36,7 +36,7 @@ extern __inline__ uint32_t __constant_ntohl(uint32_t);
extern __inline__ uint16_t __constant_ntohs(uint16_t);
extern __inline__ uint32_t
-__ntohl(unsigned long int x)
+__ntohl(uint32_t x)
{
__asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */
"rorl $16,%0\n\t" /* swap words */