Babeltrace type: build warning cleanup
[babeltrace.git] / types / types.c
index fbd1ed50bb26b621ce06c852bef68a8f6bcf434a..6fb3e5989269e11b029f7494d0d53a2d08e7ff76 100644 (file)
@@ -42,7 +42,7 @@ static void free_type(struct type_class *type_class)
 
 int register_type(struct type_class *type_class)
 {
-       if (ctf_lookup_type_class(type_class->name))
+       if (lookup_type(type_class->name))
                return -EEXIST;
 
        g_hash_table_insert(type_classes,
@@ -74,4 +74,5 @@ int init_types(void)
 int finalize_types(void)
 {
        g_hash_table_destroy(type_classes);
+       return 0;
 }
This page took 0.034064 seconds and 4 git commands to generate.