X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=hash.h;h=b875ce67c49eb39a8ca8ad6a688a334985db0534;hb=d4c813d47d5c4f821a6947a29e4a480ec6522f44;hp=69e33a47b9861df9ac12c354eae180b4f8fea857;hpb=4d9e42f8f11c57b32b976a943c8ddaf6214e64b8;p=git.git diff --git a/hash.h b/hash.h index 69e33a47b..b875ce67c 100644 --- a/hash.h +++ b/hash.h @@ -30,7 +30,7 @@ struct hash_table { extern void *lookup_hash(unsigned int hash, const struct hash_table *table); extern void **insert_hash(unsigned int hash, void *ptr, struct hash_table *table); -extern int for_each_hash(const struct hash_table *table, int (*fn)(void *)); +extern int for_each_hash(const struct hash_table *table, int (*fn)(void *, void *), void *data); extern void free_hash(struct hash_table *table); static inline void init_hash(struct hash_table *table)