[COMMITTED PATCH] Prototypify htonl and htons definitions.

Roland McGrath roland@hack.frob.com
Fri Oct 24 19:40:00 GMT 2014


2014-10-24  Roland McGrath  <roland@hack.frob.com>

	* inet/htons.c (htons): Prototypify.
	* inet/htonl.c (htonl): Likewise.

--- 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;
--- 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;



More information about the Libc-alpha mailing list