aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-07-23 15:59:07 +0200
committerYang Tse <yangsita@gmail.com>2013-07-24 01:21:26 +0200
commitde052ca6fc1c73e2857801a1bcf48c18910bec40 (patch)
treee4254800ae856c194a61efdb61bd07ea35013c04 /lib/url.c
parent1a593191c2769a47b8c3e4d9715ec9f6dddf5e36 (diff)
string formatting: fix 25+ printf-style format strings
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index a8f2a0985..347092d59 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2574,7 +2574,7 @@ CURLcode Curl_disconnect(struct connectdata *conn, bool dead_connection)
conn->handler->disconnect(conn, dead_connection);
/* unlink ourselves! */
- infof(data, "Closing connection %d\n", conn->connection_id);
+ infof(data, "Closing connection %ld\n", conn->connection_id);
Curl_conncache_remove_conn(data->state.conn_cache, conn);
#if defined(USE_LIBIDN)
@@ -2875,7 +2875,8 @@ ConnectionExists(struct SessionHandle *data,
size_t best_pipe_len = max_pipe_len;
struct curl_llist_element *curr;
- infof(data, "Found bundle for host %s: %p\n", needle->host.name, bundle);
+ infof(data, "Found bundle for host %s: %p\n",
+ needle->host.name, (void *)bundle);
/* We can't pipe if we don't know anything about the server */
if(canPipeline && !bundle->server_supports_pipelining) {
@@ -2911,7 +2912,7 @@ ConnectionExists(struct SessionHandle *data,
if(dead) {
check->data = data;
- infof(data, "Connection %d seems to be dead!\n",
+ infof(data, "Connection %ld seems to be dead!\n",
check->connection_id);
/* disconnect resources */
@@ -5335,7 +5336,7 @@ static CURLcode create_conn(struct SessionHandle *data,
if(reuse && !force_reuse && IsPipeliningPossible(data, conn_temp)) {
size_t pipelen = conn_temp->send_pipe->size + conn_temp->recv_pipe->size;
if(pipelen > 0) {
- infof(data, "Found connection %d, with requests in the pipe (%d)\n",
+ infof(data, "Found connection %ld, with requests in the pipe (%zd)\n",
conn_temp->connection_id, pipelen);
if(conn_temp->bundle->num_connections < max_host_connections &&