diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-12-20 16:51:44 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-12-22 18:14:56 +0100 |
commit | 85f9aa08d9ba78843e18b6eda83c81a2f92a729d (patch) | |
tree | 6b65f8d371413515b6236f23bb1346246e6f5084 /lib/conncache.c | |
parent | fb445a1e18d12f577964c9347bc5bca74b37cd08 (diff) | |
download | curl-85f9aa08d9ba78843e18b6eda83c81a2f92a729d.tar.gz |
conncache_unlock: avoid indirection by changing input argument type
Diffstat (limited to 'lib/conncache.c')
-rw-r--r-- | lib/conncache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/conncache.c b/lib/conncache.c index 080441854..0ac38497c 100644 --- a/lib/conncache.c +++ b/lib/conncache.c @@ -178,9 +178,9 @@ static void hashkey(struct connectdata *conn, char *buf, msnprintf(buf, len, "%ld%s", conn->port, hostname); } -void Curl_conncache_unlock(struct connectdata *conn) +void Curl_conncache_unlock(struct Curl_easy *data) { - CONN_UNLOCK(conn->data); + CONN_UNLOCK(data); } /* Returns number of connections currently held in the connection cache. |