gallium/util: replace gethostbyname() with getaddrinfo()
authorBrian Paul <brianp@vmware.com>
Tue, 17 Oct 2017 19:11:03 +0000 (13:11 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 23 Oct 2017 21:10:01 +0000 (15:10 -0600)
commit623077393631d8c42d5e4aafeee446ca165e0b7e
tree33985953aea86eb6b293ea2f7ed3e1f32dc3a435
parentfee9d05e2136b2b7c5a1ad2be7180b99f733f539
gallium/util: replace gethostbyname() with getaddrinfo()

Compiling with MSVC options /we4995 /we4996 (a subset of /sdl) generates
a warning that the gethostbyname() function is deprecated in favor of
getaddrinfo() or GetAddrInfoW().  Replace the call with getaddrinfo().

Untested.  There are no callers to u_socket_connect() in Gallium.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_network.c