Prototypify htonl and htons definitions.

This commit is contained in:
Roland McGrath 2014-10-24 12:37:36 -07:00
parent e80514b5a8
commit 70996a373d
3 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2014-10-24 Roland McGrath <roland@hack.frob.com>
* inet/htons.c (htons): Prototypify.
* inet/htonl.c (htonl): Likewise.
2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
* string/strncat.c (strncat): Improve performance by using strlen.

View file

@ -22,8 +22,7 @@
#undef ntohl
uint32_t
htonl (x)
uint32_t x;
htonl (uint32_t x)
{
#if BYTE_ORDER == BIG_ENDIAN
return x;

View file

@ -21,8 +21,7 @@
#undef ntohs
uint16_t
htons (x)
uint16_t x;
htons (uint16_t x)
{
#if BYTE_ORDER == BIG_ENDIAN
return x;