aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-09-06 00:02:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-09-06 00:02:54 +0200
commitc6fa1952a14ba2fa14f4a3483f1f573560ef3133 (patch)
tree08c88f75e74eb8e8f969234000579e25e76584f2 /lib/connect.h
parentd47bd396cecd755c5f88d1e0c7b82a81bca8bd83 (diff)
portabilty: use proper variable type to hold sockets
Curl_getconnectinfo() is changed to return a proper curl_socket_t for the last socket so that it'll work more portably (and cause less compiler warnings).
Diffstat (limited to 'lib/connect.h')
-rw-r--r--lib/connect.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/connect.h b/lib/connect.h
index 57b1c2f2d..2c6b10a38 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -47,11 +47,10 @@ long Curl_timeleft(struct connectdata *conn,
* Used to extract socket and connectdata struct for the most recent
* transfer on the given SessionHandle.
*
- * The socket 'long' will be -1 in case of failure!
+ * The returned socket will be CURL_SOCKET_BAD in case of failure!
*/
-CURLcode Curl_getconnectinfo(struct SessionHandle *data,
- long *param_longp,
- struct connectdata **connp);
+curl_socket_t Curl_getconnectinfo(struct SessionHandle *data,
+ struct connectdata **connp);
#ifdef WIN32
/* When you run a program that uses the Windows Sockets API, you may