From 57ec15c0bb0abeec6d1c523e694f3b0881340fb4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 3 Feb 2005 11:16:27 +0000 Subject: Last changes for W32 --- util/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/http.c') diff --git a/util/http.c b/util/http.c index 989abd150..19393c360 100644 --- a/util/http.c +++ b/util/http.c @@ -930,13 +930,13 @@ connect_server( const char *server, ushort port, unsigned int flags, if(!connected) { + int err=errno; #ifdef _WIN32 if(hostfound) log_error("%s: Unable to connect: ec=%d\n",server,(int)WSAGetLastError()); else log_error("%s: Host not found: ec=%d\n",server,(int)WSAGetLastError()); #else - int err=errno; if(hostfound) log_error("%s: %s\n",server,strerror(err)); else -- cgit v1.2.3