This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] Prototypify htonl and htons definitions.


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]