Prototypify htonl and htons definitions.
authorRoland McGrath <roland@hack.frob.com>
Fri, 24 Oct 2014 19:37:36 +0000 (12:37 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 24 Oct 2014 19:37:36 +0000 (12:37 -0700)
ChangeLog
inet/htonl.c
inet/htons.c

index 40e294b..b52ff14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-24  Roland McGrath  <roland@hack.frob.com>
+
+       * inet/htons.c (htons): Prototypify.
+       * inet/htonl.c (htonl): Likewise.
+
 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * string/strncat.c (strncat): Improve performance by using strlen.
index 3829e4f..290e2ae 100644 (file)
@@ -22,8 +22,7 @@
 #undef ntohl
 
 uint32_t
-htonl (x)
-     uint32_t x;
+htonl (uint32_t x)
 {
 #if BYTE_ORDER == BIG_ENDIAN
   return x;
index 6305996..42fb723 100644 (file)
@@ -21,8 +21,7 @@
 #undef ntohs
 
 uint16_t
-htons (x)
-     uint16_t x;
+htons (uint16_t x)
 {
 #if BYTE_ORDER == BIG_ENDIAN
   return x;