X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Ffloat.c;fp=formats%2Fctf%2Ftypes%2Ffloat.c;h=054e262452dc5edae4661950b43429b75e73924d;hp=0cf9caeb6c7795212c53dc7d540c1a9fdd53b36e;hb=2e937fb4814a0db0d4724dd03fb93926b065e03b;hpb=90b55a973b0689bb667a7e255d90d622414cb3ef diff --git a/formats/ctf/types/float.c b/formats/ctf/types/float.c index 0cf9caeb..054e2624 100644 --- a/formats/ctf/types/float.c +++ b/formats/ctf/types/float.c @@ -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,6 +293,7 @@ void __attribute__((constructor)) ctf_float_init(void) __alignof__(double)); } +static void __attribute__((destructor)) ctf_float_fini(void) { declaration_unref(&static_float_declaration->p);