This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Prototypify htonl and htons definitions.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 24 Oct 2014 12:39:59 -0700 (PDT)
- Subject: [COMMITTED PATCH] Prototypify htonl and htons definitions.
- Authentication-results: sourceware.org; auth=none
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;