mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Attempt to silence warnings by casting to socklen_t
This commit is contained in:
parent
f5d46681c2
commit
6c8f649b02
@ -35,7 +35,7 @@ static bool translate_addr(struct sockaddr_in *addr,
|
|||||||
{
|
{
|
||||||
#ifndef HAVE_SOCKET_LEGACY
|
#ifndef HAVE_SOCKET_LEGACY
|
||||||
if (getnameinfo((struct sockaddr *) addr, sizeof(*addr),
|
if (getnameinfo((struct sockaddr *) addr, sizeof(*addr),
|
||||||
host, hostlen, port, portlen,
|
host, (socklen_t)hostlen, (socklen_t)port, (socklen_t)portlen,
|
||||||
NI_NUMERICHOST | NI_NUMERICSERV))
|
NI_NUMERICHOST | NI_NUMERICSERV))
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user