diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-04-03 21:30:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-04-03 21:30:15 -0400 |
commit | 5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch) | |
tree | 2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/map.c | |
parent | 7bc2770af08e317b2076540050c68d2de55a11db (diff) | |
download | dimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz |
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'libdimension/map.c')
-rw-r--r-- | libdimension/map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/map.c b/libdimension/map.c index fe2978a..2151525 100644 --- a/libdimension/map.c +++ b/libdimension/map.c @@ -48,7 +48,7 @@ dmnsn_delete_map(dmnsn_map *map) if (map->free_fn) { for (size_t i = 0; i < dmnsn_array_size(map->array); ++i) { dmnsn_map_entry *entry = dmnsn_array_at(map->array, i); - (*map->free_fn)(entry->object); + map->free_fn(entry->object); } } @@ -131,6 +131,6 @@ dmnsn_map_apply(dmnsn_map *map, dmnsn_callback_fn *callback) { for (size_t i = 0; i < dmnsn_array_size(map->array); ++i) { dmnsn_map_entry *entry = dmnsn_array_at(map->array, i); - (*callback)(entry->object); + callback(entry->object); } } |