summaryrefslogtreecommitdiff
path: root/lib/share.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-12 09:46:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-12 09:46:53 +0200
commitb419e7ae0c9869ac3eb06d529efeb2c6dc1b4bc1 (patch)
tree6938b33aaf767e9006ce881bd707651b10cc946a /lib/share.h
parentd37e0160c2eb22c616ae3ff25c03c3b4711b2a13 (diff)
downloadcurl-b419e7ae0c9869ac3eb06d529efeb2c6dc1b4bc1.tar.gz
hostcache: made all host caches use structs, not pointers
This avoids unnecessary dynamic allocs and as this also removed the last users of *hash_alloc() and *hash_destroy(), those two functions are now removed.
Diffstat (limited to 'lib/share.h')
-rw-r--r--lib/share.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/share.h b/lib/share.h
index 9a5128e93..8e6629b7b 100644
--- a/lib/share.h
+++ b/lib/share.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -44,7 +44,7 @@ struct Curl_share {
curl_unlock_function unlockfunc;
void *clientdata;
- struct curl_hash *hostcache;
+ struct curl_hash hostcache;
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
struct CookieInfo *cookies;
#endif