diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2010-07-26 23:05:32 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2010-07-30 21:57:42 +0200 |
commit | 7c8625dc0c8544c7e562991a0757b9c3d8f858f2 (patch) | |
tree | 2548ebb9867907fa8bb76df0657c307e8b2977e3 /isl_hash.c | |
parent | 399b9bcaf2199202853e55acb58b7a5b3632aeec (diff) | |
download | isl-7c8625dc0c8544c7e562991a0757b9c3d8f858f2.tar.gz isl-7c8625dc0c8544c7e562991a0757b9c3d8f858f2.tar.bz2 isl-7c8625dc0c8544c7e562991a0757b9c3d8f858f2.zip |
isl_hash_table_foreach: pass pointer to entry data
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Diffstat (limited to 'isl_hash.c')
-rw-r--r-- | isl_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -163,7 +163,7 @@ struct isl_hash_table_entry *isl_hash_table_find(struct isl_ctx *ctx, int isl_hash_table_foreach(struct isl_ctx *ctx, struct isl_hash_table *table, - int (*fn)(void *entry, void *user), void *user) + int (*fn)(void **entry, void *user), void *user) { size_t size; uint32_t h; @@ -171,7 +171,7 @@ int isl_hash_table_foreach(struct isl_ctx *ctx, size = 1 << table->bits; for (h = 0; h < size; ++ h) if (table->entries[h].data && - fn(table->entries[h].data, user) < 0) + fn(&table->entries[h].data, user) < 0) return -1; return 0; |