From 70996a373dd38296254029423ae6d87c02e7184a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 24 Oct 2014 12:37:36 -0700 Subject: Prototypify htonl and htons definitions. --- ChangeLog | 5 +++++ inet/htonl.c | 3 +-- inet/htons.c | 3 +-- 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 + + * inet/htons.c (htons): Prototypify. + * inet/htonl.c (htonl): Likewise. + 2014-10-24 Wilco Dijkstra * 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; -- cgit v1.2.1