aboutsummaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2018-05-28 21:46:22 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-31 11:34:32 +0200
commit8ea5d41fe0167802c74a049e8409a85fb68083be (patch)
tree5fc7fc8fe2d5ecbce37bc2031e0f1af638155f63 /lib/conncache.c
parent946ce5b61fc3832935ea92b4388116c7f637fb8c (diff)
strictness: correct {infof, failf} format specifiers
Closes #2623
Diffstat (limited to 'lib/conncache.c')
-rw-r--r--lib/conncache.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index b8f544485..6bd06582a 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -301,8 +301,8 @@ CURLcode Curl_conncache_add_conn(struct conncache *connc,
connc->num_conn++;
DEBUGF(infof(conn->data, "Added connection %ld. "
- "The cache now contains %" CURL_FORMAT_CURL_OFF_TU " members\n",
- conn->connection_id, (curl_off_t) connc->num_conn));
+ "The cache now contains %zu members\n",
+ conn->connection_id, connc->num_conn));
unlock:
CONN_UNLOCK(data);
@@ -328,9 +328,8 @@ void Curl_conncache_remove_conn(struct connectdata *conn, bool lock)
conn->bundle = NULL; /* removed from it */
if(connc) {
connc->num_conn--;
- DEBUGF(infof(conn->data, "The cache now contains %"
- CURL_FORMAT_CURL_OFF_TU " members\n",
- (curl_off_t) connc->num_conn));
+ DEBUGF(infof(conn->data, "The cache now contains %zu members\n",
+ connc->num_conn));
}
if(lock) {
CONN_UNLOCK(conn->data);
@@ -501,9 +500,8 @@ Curl_conncache_extract_bundle(struct Curl_easy *data,
/* remove it to prevent another thread from nicking it */
bundle_remove_conn(bundle, conn_candidate);
data->state.conn_cache->num_conn--;
- DEBUGF(infof(data, "The cache now contains %"
- CURL_FORMAT_CURL_OFF_TU " members\n",
- (curl_off_t) data->state.conn_cache->num_conn));
+ DEBUGF(infof(data, "The cache now contains %zu members\n",
+ data->state.conn_cache->num_conn));
}
return conn_candidate;
@@ -563,9 +561,8 @@ Curl_conncache_extract_oldest(struct Curl_easy *data)
/* remove it to prevent another thread from nicking it */
bundle_remove_conn(bundle_candidate, conn_candidate);
connc->num_conn--;
- DEBUGF(infof(data, "The cache now contains %"
- CURL_FORMAT_CURL_OFF_TU " members\n",
- (curl_off_t) connc->num_conn));
+ DEBUGF(infof(data, "The cache now contains %zu members\n",
+ connc->num_conn));
}
CONN_UNLOCK(data);