Attempt to silence warnings by casting to socklen_t

This commit is contained in:
libretroadmin 2022-07-14 21:27:00 +02:00
parent f5d46681c2
commit 6c8f649b02

View File

@ -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