namespace declaration_ref and declaration_unref
[babeltrace.git] / formats / ctf / types / float.c
index 0cf9caeb6c7795212c53dc7d540c1a9fdd53b36e..d77cff53bea6676d9d3618366f0218f8beb93e54 100644 (file)
@@ -96,7 +96,7 @@ static void float_unlock(void)
        assert(!ret);
 }
 
-int _ctf_float_copy(struct stream_pos *destp,
+static int _ctf_float_copy(struct stream_pos *destp,
                    struct definition_float *dest_definition,
                    struct stream_pos *srcp,
                    const struct definition_float *src_definition)
@@ -278,6 +278,7 @@ end:
        return ret;
 }
 
+static
 void __attribute__((constructor)) ctf_float_init(void)
 {
        static_float_declaration =
@@ -292,8 +293,9 @@ void __attribute__((constructor)) ctf_float_init(void)
                                __alignof__(double));
 }
 
+static
 void __attribute__((destructor)) ctf_float_fini(void)
 {
-       declaration_unref(&static_float_declaration->p);
-       declaration_unref(&static_double_declaration->p);
+       bt_declaration_unref(&static_float_declaration->p);
+       bt_declaration_unref(&static_double_declaration->p);
 }
This page took 0.023748 seconds and 4 git commands to generate.