X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Ftypes%2Ffloat.c;fp=formats%2Fctf-text%2Ftypes%2Ffloat.c;h=1f52cb078765a3c7389e1679e658b226d7024dad;hp=e96b4dd596f8fa75d71407d53451cc1807835d3b;hb=c5e74408f9786219f6b44400dcf2098ab9cc78fb;hpb=2e8b37d41284e54bdb5af4bf5b51c5a616f69597 diff --git a/formats/ctf-text/types/float.c b/formats/ctf-text/types/float.c index e96b4dd5..1f52cb07 100644 --- a/formats/ctf-text/types/float.c +++ b/formats/ctf-text/types/float.c @@ -21,14 +21,15 @@ #include #include -void ctf_text_float_write(struct stream_pos *ppos, struct definition *definition) +int ctf_text_float_write(struct stream_pos *ppos, struct definition *definition) { struct definition_float *float_definition = container_of(definition, struct definition_float, p); struct ctf_text_stream_pos *pos = ctf_text_pos(ppos); if (pos->dummy) - return; + return 0; print_pos_tabs(pos); fprintf(pos->fp, "%Lg\n", float_definition->value); + return 0; }