Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
network
/
ntohl.c
blob: d6fce4590d43a3ee868d7cd807c89c0b6599ee3e [
file
] [
log
] [
blame
]
#include
<netinet/in.h>
#include
<byteswap.h>
uint32_t
ntohl
(
uint32_t
n
)
{
union
{
int
i
;
char
c
;
}
u
=
{
1
};
return
u
.
c
?
bswap_32
(
n
)
:
n
;
}