diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-07-04 21:36:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-07-04 21:36:14 +0000 |
commit | d2e6a0583a6fd310b946dfd7f88942b0d9650f4c (patch) | |
tree | 72a1ca34af254c52ffe04fda8ffc8b8746dadd72 | |
parent | b2c9277e66fe57c607aab94bf6c84a113746d222 (diff) |
made 'connectindex' a long variable to prevent compiler warnings when
implicitly converting it to int
-rw-r--r-- | lib/url.c | 6 | ||||
-rw-r--r-- | lib/urldata.h | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -1453,7 +1453,7 @@ CURLcode Curl_disconnect(struct connectdata *conn) if(-1 != conn->connectindex) { /* unlink ourselves! */ - infof(data, "Closing connection #%d\n", conn->connectindex); + infof(data, "Closing connection #%ld\n", conn->connectindex); data->state.connects[conn->connectindex] = NULL; } @@ -3123,7 +3123,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, *in_connect = conn; /* return this instead! */ - infof(data, "Re-using existing connection! (#%d) with host %s\n", + infof(data, "Re-using existing connection! (#%ld) with host %s\n", conn->connectindex, conn->host.dispname); } else { @@ -3500,7 +3500,7 @@ CURLcode Curl_done(struct connectdata **connp, result = res2; } else - infof(data, "Connection #%d to host %s left intact\n", + infof(data, "Connection #%ld to host %s left intact\n", conn->connectindex, conn->host.dispname); return result; diff --git a/lib/urldata.h b/lib/urldata.h index 03bc5f394..7be2a9324 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -429,7 +429,7 @@ struct Curl_async { struct connectdata { /**** Fields set when inited and not modified again */ struct SessionHandle *data; /* link to the root CURL struct */ - int connectindex; /* what index in the connects index this particular + long connectindex; /* what index in the connects index this particular struct has */ long protocol; /* PROT_* flags concerning the protocol set */ |