]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 40e294b7d44977b4da3fa1e2390b75a1aa8c5c37..b52ff14f95b5f0184d8591ae4fb2e37bfb26701a 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 3829e4f0cfe78238b7d53315835a996f9c555cce..290e2ae89bc658ce913a815270558f3aa9ef04a0 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 630599612661fc10840d9bb9b165aefcba5f84d6..42fb7235393592c7c8816d5f2751a7b12f6f0f1c 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;