* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of

SOCKET_ERROR.  Noted by Timo.
This commit is contained in:
David Shaw 2005-01-13 22:08:18 +00:00
parent d8ec7c96aa
commit 3fe489d1ac
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-01-13 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of
SOCKET_ERROR. Noted by Timo.
2005-01-09 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_curl.c (get_key): Newer versions of libcurl don't define

View File

@ -120,7 +120,7 @@ connect_server (const char *server, unsigned short port)
/* Win32 gethostbyname doesn't handle IP addresses internally, so we
try inet_addr first on that platform only. */
if ((l = inet_addr (server)) != SOCKET_ERROR)
if ((l = inet_addr (server)) != INADDR_NONE)
memcpy (&addr.sin_addr, &l, sizeof l);
else if ((hp = gethostbyname (server)))
{