summaryrefslogtreecommitdiff
path: root/lib/connect.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-05-04 22:39:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-05-04 22:39:47 +0000
commite85e30546c89e17b6fb0cf383de25b7ed7f3bf3d (patch)
tree2a1b3fd6b5c6a93bbae756e8dcea01c7c43fa198 /lib/connect.h
parent758f6eed5169f20635c410077b840c1ffb741ddb (diff)
downloadcurl-e85e30546c89e17b6fb0cf383de25b7ed7f3bf3d.tar.gz
Roland Blom filed bug report #1481217
(http://curl.haxx.se/bug/view.cgi?id=1481217), with follow-ups by Michele Bini and David Byron. libcurl previously wrongly used GetLastError() on windows to get error details after socket-related function calls, when it really should use WSAGetLastError() instead. When changing to this, the former function Curl_ourerrno() is now instead called Curl_sockerrno() as it is necessary to only use it to get errno from socket-related functions as otherwise it won't work as intended on Windows.
Diffstat (limited to 'lib/connect.h')
-rw-r--r--lib/connect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.h b/lib/connect.h
index 50a9e3464..0f593817f 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -37,7 +37,7 @@ CURLcode Curl_connecthost(struct connectdata *conn,
bool *connected /* truly connected? */
);
-int Curl_ourerrno(void);
+int Curl_sockerrno(void);
CURLcode Curl_store_ip_addr(struct connectdata *conn);