X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Flibreceita.git;a=blobdiff_plain;f=pmhash.c;h=ca9cfcaae72ddf244196bbfc06b054f85b6ccd37;hp=d22885633a468b636db410de58accbc09076c566;hb=HEAD;hpb=d391b8d1912b9ce1254fb1fede13419aad66fe49 diff --git a/pmhash.c b/pmhash.c index d228856..ca9cfca 100644 --- a/pmhash.c +++ b/pmhash.c @@ -44,7 +44,7 @@ struct pmhash * pmhash_new(void) int pmhash_add(struct pmhash **pmhash, char *key, void *val) { - int i; + unsigned int i; struct pmhash *hash = *pmhash; i = 0; repeat: @@ -74,7 +74,7 @@ out: void * pmhash_get(struct pmhash *pmhash, char *key) { - int i; + unsigned int i; for (i = 0; i < pmhash->len; i++) { if (pmhash->items[i].key == NULL) return NULL; @@ -86,7 +86,7 @@ void * pmhash_get(struct pmhash *pmhash, char *key) void pmhash_del(struct pmhash *pmhash) { - int i; + unsigned int i; for (i = 0; i < pmhash->len; i++) { if (pmhash->items[i].key == NULL) break;