diff --git a/jwHash.c b/jwHash.c index 056f388..8587319 100644 --- a/jwHash.c +++ b/jwHash.c @@ -278,8 +278,7 @@ HASHRESULT add_int_by_str( jwHashTable *table, char *key, long int value ) HASHRESULT hash_iterator(jwHashTable *table, process_hash_value_callback process_cb, HASHVALTAG type) { - int i = 0; - for(; i < table->buckets; i++) { + for(int i = 0; i < table->buckets; i++) { jwHashEntry *entry = table->bucket[i]; while(entry) { switch(type) {