]> granicus.if.org Git - curl/commit
tests/server/resolve.c: fix deprecation warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 16 Jul 2017 12:28:10 +0000 (14:28 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Tue, 18 Jul 2017 08:23:47 +0000 (10:23 +0200)
commitda6aa3f76382e6ddf471dad198c507b7c7704ffb
treefe763800fd0b484b3dbb1cec3675647074ce288c
parent798ad5d924a64cf68971fad04d357ed9b8b07f91
tests/server/resolve.c: fix deprecation warning

MSVC warns that gethostbyname is deprecated. Always use getaddrinfo
instead to fix this when IPv6 is enabled, also for IPv4 resolves. This
is also consistent with what libcurl does.

Closes https://github.com/curl/curl/pull/1682
tests/server/resolve.c