Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Use size_t instead of int.
Browse files Browse the repository at this point in the history
  • Loading branch information
tricky committed Dec 31, 2010
1 parent 01b0b19 commit 66c2d50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hash_si.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int hash_si_init(struct hash_si *h, size_t size) {
/* }}} */
/* {{{ hash_si_deinit */
void hash_si_deinit(struct hash_si *h) {
int i;
size_t i;

for (i = 0; i < h->size; i++) {
if (h->data[i].key != NULL) {
Expand Down Expand Up @@ -160,7 +160,7 @@ int hash_si_remove(struct hash_si *h, const char *key, size_t key_len, uint32_t
*/
inline static void hash_si_rehash(struct hash_si *h) {
uint32_t hv;
int i;
size_t i;
struct hash_si newh;

assert(h != NULL);
Expand Down Expand Up @@ -228,7 +228,7 @@ int hash_si_find(struct hash_si *h, const char *key, size_t key_len, uint32_t *v
/* }}} */
/* {{{ hash_si_traverse */
void hash_si_traverse(struct hash_si *h, int (*traverse_function) (const char *key, size_t key_len, uint32_t value)) {
int i;
size_t i;

assert(h != NULL && traverse_function != NULL);

Expand Down

0 comments on commit 66c2d50

Please sign in to comment.