Conform to c89

This commit is contained in:
Andreas Pasiopoulos
2016-08-11 18:51:29 +03:00
parent 86fdf76f79
commit 6a4b3f878d
2 changed files with 5 additions and 3 deletions

View File

@@ -153,11 +153,12 @@ static int hashtable_do_rehash(hashtable_t *hashtable)
list_t *list, *next;
pair_t *pair;
size_t i, index, new_size, new_order;
struct hashtable_bucket *new_buckets;
new_order = hashtable->order + 1;
new_size = hashsize(new_order);
struct hashtable_bucket *new_buckets = jsonp_malloc(new_size * sizeof(bucket_t));
new_buckets = jsonp_malloc(new_size * sizeof(bucket_t));
if(!new_buckets)
return -1;