summaryrefslogtreecommitdiffstats
path: root/dimension/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /dimension/parse.c
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'dimension/parse.c')
-rw-r--r--dimension/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dimension/parse.c b/dimension/parse.c
index 198a4b8..99cda05 100644
--- a/dimension/parse.c
+++ b/dimension/parse.c
@@ -65,7 +65,7 @@ void dmnsn_pop_scope(dmnsn_symbol_table *symtable)
{
dmnsn_dictionary *scope;
dmnsn_array_pop(symtable, &scope);
- dmnsn_dictionary_apply(scope, &dmnsn_delete_symbol_table_entry);
+ dmnsn_dictionary_apply(scope, dmnsn_delete_symbol_table_entry);
dmnsn_delete_dictionary(scope);
}
@@ -274,7 +274,7 @@ dmnsn_delete_astnode(dmnsn_astnode astnode)
if (*astnode.refcount <= 1) {
dmnsn_delete_astree(astnode.children);
if (astnode.free_fn) {
- (*astnode.free_fn)(astnode.ptr);
+ astnode.free_fn(astnode.ptr);
} else {
dmnsn_free(astnode.ptr);
}