Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-04-21 18:29:54 +0400
committerCorinna Vinschen <corinna@vinschen.de>2006-04-21 18:29:54 +0400
commit053fc4771a6d76d42bcb3027e25cd735ede656e8 (patch)
treecc0ac8ff43924d73ff3f86ae46708cc5d9894612
parent00c2208858043c814591b5f32171edd7b18e1804 (diff)
* include/asm/byteorder.h (__ntohl): Fix the missing uint32_t.
-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 56f45f419..c5e937d2b 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 fd683ff9f..79e580fde 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 */