aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-29 15:37:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-29 15:37:21 +0000
commitbfe5568c8515a628e128f4ab88f139c583847e56 (patch)
tree94854c310154910591c1a527bf949f3d9d08d556 /lib/connect.c
parent7e45a1ac5310cba784fe4434e41f6ad276976d80 (diff)
added verifyconnect proto and use it correctly in the waitconnect function
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 0d8d278f8..97fb15ccd 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -87,6 +87,8 @@
#include "memdebug.h"
#endif
+static bool verifyconnect(int sockfd);
+
int Curl_ourerrno(void)
{
#ifdef WIN32
@@ -178,7 +180,7 @@ int waitconnect(int sockfd, /* socket */
/* Call this function once now, and ignore the results. We do this to
"clear" the error state on the socket so that we can later read it
reliably. This is reported necessary on the MPE/iX operating system. */
- verifyconnect();
+ verifyconnect(sockfd);
/* now select() until we get connect or timeout */
FD_ZERO(&fd);