summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mixlib/mix_parser.c2
-rw-r--r--mixlib/mix_vm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mixlib/mix_parser.c b/mixlib/mix_parser.c
index 2a5d29f..17ed49b 100644
--- a/mixlib/mix_parser.c
+++ b/mixlib/mix_parser.c
@@ -170,7 +170,7 @@ mix_parser_delete (mix_parser_t *parser)
/* clear the GSList values of future_refs and its keys */
g_hash_table_foreach (parser->future_refs, delete_list_vals_, NULL);
/* clear the ins_node_'s of the ins tree */
- g_tree_traverse (parser->ins_table, delete_tree_vals_, G_IN_ORDER, NULL);
+ g_tree_foreach (parser->ins_table, delete_tree_vals_, NULL);
/* destroy the tree and hash tables */
g_tree_destroy (parser->ins_table);
mix_symbol_table_delete (parser->symbol_table);
diff --git a/mixlib/mix_vm.c b/mixlib/mix_vm.c
index c73e848..4d28e02 100644
--- a/mixlib/mix_vm.c
+++ b/mixlib/mix_vm.c
@@ -437,7 +437,7 @@ mix_vm_get_lineno_address (const mix_vm_t *vm, guint lineno)
if (!vm->line_table) return MIX_VM_CELL_NO;
tr.lineno = lineno;
tr.result = MIX_VM_CELL_NO;
- g_tree_traverse (vm->line_table, get_address_, G_IN_ORDER, (gpointer)&tr);
+ g_tree_foreach (vm->line_table, get_address_, (gpointer)&tr);
return tr.result;
}