mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Change getaddrinfo_rarch call to be the same as the rest
This commit is contained in:
parent
9df772f4f7
commit
79a4de0677
11
net_http.c
11
net_http.c
@ -90,15 +90,14 @@ static int net_http_new_socket(const char * domain, int port)
|
||||
sprintf(portstr, "%i", port);
|
||||
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family=AF_UNSPEC;
|
||||
hints.ai_socktype=SOCK_STREAM;
|
||||
hints.ai_flags=0;
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_flags = 0;
|
||||
|
||||
getaddrinfo_rarch(domain, portstr, &hints, &addr);
|
||||
if (!addr)
|
||||
if (getaddrinfo_rarch(domain, portstr, &hints, &addr) < 0)
|
||||
return -1;
|
||||
|
||||
(void)i;
|
||||
(void)i;
|
||||
|
||||
fd = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user