1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

made 'connectindex' a long variable to prevent compiler warnings when

implicitly converting it to int
This commit is contained in:
Daniel Stenberg 2004-07-04 21:36:14 +00:00
parent b2c9277e66
commit d2e6a0583a
2 changed files with 4 additions and 4 deletions

View File

@ -1453,7 +1453,7 @@ CURLcode Curl_disconnect(struct connectdata *conn)
if(-1 != conn->connectindex) { if(-1 != conn->connectindex) {
/* unlink ourselves! */ /* unlink ourselves! */
infof(data, "Closing connection #%d\n", conn->connectindex); infof(data, "Closing connection #%ld\n", conn->connectindex);
data->state.connects[conn->connectindex] = NULL; data->state.connects[conn->connectindex] = NULL;
} }
@ -3123,7 +3123,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
*in_connect = conn; /* return this instead! */ *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); conn->connectindex, conn->host.dispname);
} }
else { else {
@ -3500,7 +3500,7 @@ CURLcode Curl_done(struct connectdata **connp,
result = res2; result = res2;
} }
else 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); conn->connectindex, conn->host.dispname);
return result; return result;

View File

@ -429,7 +429,7 @@ struct Curl_async {
struct connectdata { struct connectdata {
/**** Fields set when inited and not modified again */ /**** Fields set when inited and not modified again */
struct SessionHandle *data; /* link to the root CURL struct */ 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 */ struct has */
long protocol; /* PROT_* flags concerning the protocol set */ long protocol; /* PROT_* flags concerning the protocol set */