summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-10-24 12:37:36 -0700
committerRoland McGrath <roland@hack.frob.com>2014-10-24 12:37:36 -0700
commit70996a373dd38296254029423ae6d87c02e7184a (patch)
tree076fa71693036a75bd81b58a3acf95d3fe673c46
parente80514b5a87c86a92352ce526c4b9db85f2a242c (diff)
downloadglibc-70996a373dd38296254029423ae6d87c02e7184a.tar.gz
glibc-70996a373dd38296254029423ae6d87c02e7184a.tar.xz
glibc-70996a373dd38296254029423ae6d87c02e7184a.zip
Prototypify htonl and htons definitions.
-rw-r--r--ChangeLog5
-rw-r--r--inet/htonl.c3
-rw-r--r--inet/htons.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 40e294b7d4..b52ff14f95 100644
--- 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.
diff --git a/inet/htonl.c b/inet/htonl.c
index 3829e4f0cf..290e2ae89b 100644
--- a/inet/htonl.c
+++ b/inet/htonl.c
@@ -22,8 +22,7 @@
 #undef	ntohl
 
 uint32_t
-htonl (x)
-     uint32_t x;
+htonl (uint32_t x)
 {
 #if BYTE_ORDER == BIG_ENDIAN
   return x;
diff --git a/inet/htons.c b/inet/htons.c
index 6305996126..42fb723539 100644
--- a/inet/htons.c
+++ b/inet/htons.c
@@ -21,8 +21,7 @@
 #undef	ntohs
 
 uint16_t
-htons (x)
-     uint16_t x;
+htons (uint16_t x)
 {
 #if BYTE_ORDER == BIG_ENDIAN
   return x;