X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Ftypes%2Fenum.c;h=507d0c35e9ef0d26bffcbe1cb9a3eedaa04858e5;hp=0117dd32721f7f2945b699054e793ec17e57749d;hb=d17081340c79b300d190d39f29447b9002cf0673;hpb=de0ba614e2c8243bfcd107febdaa44a19e658300 diff --git a/lib/types/enum.c b/lib/types/enum.c index 0117dd32..507d0c35 100644 --- a/lib/types/enum.c +++ b/lib/types/enum.c @@ -160,10 +160,10 @@ struct enum_table *enum_new(void) struct enum_table *table; table = g_new(struct enum_table, 1); - table->value_to_quark = g_hash_table_new_full(enum_val_hash, - enum_val_equal, - enum_val_free, NULL); - table->quark_to_value = g_hash_table_new(g_direct_hash, g_direct_equal); + table->value_to_quark = g_hash_table(enum_val_hash, enum_val_equal); + table->quark_to_value = g_hash_table_new_full(g_direct_hash, + g_direct_equal, + NULL, enum_val_free); } void enum_destroy(struct enum_table *table)