mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +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
|
||||
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))
|
||||
return false;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user