summaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2017-02-19 14:10:54 +0100
committerMichael Kaufmann <mail@michael-kaufmann.ch>2017-02-19 14:13:42 +0100
commitddedc1b3f37354dc7748f47c094773fb0a716e18 (patch)
tree0d46d2b59f4865def9b04a2c50712e46fc8673d3 /lib/conncache.c
parentf45de0e87c55de992d7ff1fcc902c4809675ec63 (diff)
downloadcurl-ddedc1b3f37354dc7748f47c094773fb0a716e18.tar.gz
string formatting: fix 4 printf-style format strings
Diffstat (limited to 'lib/conncache.c')
-rw-r--r--lib/conncache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index d8ef9a54c..a51c8fd76 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -141,7 +141,7 @@ static char *hashkey(struct connectdata *conn)
else
hostname = conn->host.name;
- return aprintf("%s:%d", hostname, conn->port);
+ return aprintf("%s:%ld", hostname, conn->port);
}
/* Look up the bundle with all the connections to the same host this