[COMMITTED] Prototypify htonl and htons definitions.
diff mbox

Message ID 20141024193959.2AE4C2C3AB6@topped-with-meat.com
State New
Headers show

Commit Message

Roland McGrath Oct. 24, 2014, 7:39 p.m. UTC
2014-10-24  Roland McGrath  <roland@hack.frob.com>

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

Patch
diff mbox

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