summaryrefslogtreecommitdiff
path: root/devel/jansson/files/patch-src_hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/jansson/files/patch-src_hashtable.c')
-rw-r--r--devel/jansson/files/patch-src_hashtable.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/jansson/files/patch-src_hashtable.c b/devel/jansson/files/patch-src_hashtable.c
index fb57b4d9246f..6f97889ce76e 100644
--- a/devel/jansson/files/patch-src_hashtable.c
+++ b/devel/jansson/files/patch-src_hashtable.c
@@ -1,6 +1,6 @@
---- src/hashtable.c.orig 2016-08-25 17:21:36 UTC
+--- src/hashtable.c.orig 2018-02-08 09:05:40 UTC
+++ src/hashtable.c
-@@ -108,10 +108,10 @@ static int hashtable_do_del(hashtable_t
+@@ -108,10 +108,10 @@ static int hashtable_do_del(hashtable_t *hashtable,
{
pair_t *pair;
bucket_t *bucket;
@@ -14,7 +14,7 @@
pair = hashtable_find_pair(hashtable, bucket, key, hash);
if(!pair)
-@@ -154,7 +154,7 @@ static int hashtable_do_rehash(hashtable
+@@ -154,7 +154,7 @@ static int hashtable_do_rehash(hashtable_t *hashtable)
{
list_t *list, *next;
pair_t *pair;
@@ -23,7 +23,7 @@
struct hashtable_bucket *new_buckets;
new_order = hashtable->order + 1;
-@@ -180,8 +180,8 @@ static int hashtable_do_rehash(hashtable
+@@ -180,8 +180,8 @@ static int hashtable_do_rehash(hashtable_t *hashtable)
for(; list != &hashtable->list; list = next) {
next = list->next;
pair = list_to_pair(list);
@@ -34,7 +34,7 @@
}
return 0;
-@@ -220,7 +220,7 @@ int hashtable_set(hashtable_t *hashtable
+@@ -220,7 +220,7 @@ int hashtable_set(hashtable_t *hashtable, const char *
{
pair_t *pair;
bucket_t *bucket;
@@ -43,7 +43,7 @@
/* rehash if the load ratio exceeds 1 */
if(hashtable->size >= hashsize(hashtable->order))
-@@ -228,8 +228,8 @@ int hashtable_set(hashtable_t *hashtable
+@@ -228,8 +228,8 @@ int hashtable_set(hashtable_t *hashtable, const char *
return -1;
hash = hash_str(key);