projects
/
platform
/
upstream
/
curl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 7.53.1
[platform/upstream/curl.git]
/
lib
/
hash.c
diff --git
a/lib/hash.c
b/lib/hash.c
index
937381b
..
0655042
100644
(file)
--- a/
lib/hash.c
+++ b/
lib/hash.c
@@
-135,7
+135,7
@@
Curl_hash_add(struct curl_hash *h, void *key, size_t key_len, void *p)
{
struct curl_hash_element *he;
struct curl_llist_element *le;
{
struct curl_hash_element *he;
struct curl_llist_element *le;
- struct curl_llist *l = FETCH_LIST
(h, key, key_len);
+ struct curl_llist *l = FETCH_LIST(h, key, key_len);
for(le = l->head; le; le = le->next) {
he = (struct curl_hash_element *) le->ptr;
for(le = l->head; le; le = le->next) {
he = (struct curl_hash_element *) le->ptr;
@@
-291,9
+291,9
@@
Curl_hash_clean_with_criterium(struct curl_hash *h, void *user,
}
}
}
}
-size_t Curl_hash_str(void
*
key, size_t key_length, size_t slots_num)
+size_t Curl_hash_str(void
*
key, size_t key_length, size_t slots_num)
{
{
- const char
*
key_str = (const char *) key;
+ const char
*
key_str = (const char *) key;
const char *end = key_str + key_length;
unsigned long h = 5381;
const char *end = key_str + key_length;
unsigned long h = 5381;