summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */