summaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
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