X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fhash.h;h=90a25d1ca3f8f0df4420c922834684ed09353c50;hb=cfd75dcdb18d0a4291f48020211c65507a97d9eb;hp=a5a6cac720716b044b5c6cca708c59704a589773;hpb=24b9957402f17c422eeeb3386bf049feeb342e78;p=platform%2Fupstream%2Fcurl.git diff --git a/lib/hash.h b/lib/hash.h index a5a6cac..90a25d1 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2017, Daniel Stenberg, , 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 @@ typedef size_t (*comp_function) (void *key1, typedef void (*curl_hash_dtor)(void *); struct curl_hash { - struct curl_llist **table; + struct curl_llist *table; /* Hash function to be used for this hash table */ hash_function hash_func; @@ -57,9 +57,10 @@ struct curl_hash { }; struct curl_hash_element { + struct curl_llist_element list; void *ptr; - char *key; size_t key_len; + char key[1]; /* allocated memory following the struct */ }; struct curl_hash_iterator {