mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
Prototypify htonl and htons definitions.
This commit is contained in:
parent
e80514b5a8
commit
70996a373d
@ -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.
|
||||
|
@ -22,8 +22,7 @@
|
||||
#undef ntohl
|
||||
|
||||
uint32_t
|
||||
htonl (x)
|
||||
uint32_t x;
|
||||
htonl (uint32_t x)
|
||||
{
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
return x;
|
||||
|
@ -21,8 +21,7 @@
|
||||
#undef ntohs
|
||||
|
||||
uint16_t
|
||||
htons (x)
|
||||
uint16_t x;
|
||||
htons (uint16_t x)
|
||||
{
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
return x;
|
||||
|
Loading…
Reference in New Issue
Block a user