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;
}
*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 {
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;
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 */