X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Ffloat.c;h=8ba8a69d51d83d45b1c43a05074f959c22554f70;hp=c494ee8202dec2ef9f9ac7d0f23b82c2fc377cf2;hb=98df1c9fb24d5e7e10bf628692011e130e0d8339;hpb=c5e74408f9786219f6b44400dcf2098ab9cc78fb diff --git a/formats/ctf/types/float.c b/formats/ctf/types/float.c index c494ee82..8ba8a69d 100644 --- a/formats/ctf/types/float.c +++ b/formats/ctf/types/float.c @@ -142,13 +142,13 @@ int ctf_float_read(struct stream_pos *ppos, struct definition *definition) union ldoubleIEEE754 u; struct definition *tmpdef = static_ldouble_declaration->p.definition_new(&static_ldouble_declaration->p, - NULL, 0, 0); + NULL, 0, 0, NULL); struct definition_float *tmpfloat = container_of(tmpdef, struct definition_float, p); struct ctf_stream_pos destp; int ret; - ctf_init_pos(&destp, -1, O_WRONLY); + ctf_init_pos(&destp, -1, O_RDWR); destp.base = (char *) u.bits; ctf_align_pos(pos, float_declaration->p.alignment); @@ -168,7 +168,7 @@ int ctf_float_write(struct stream_pos *ppos, struct definition *definition) union ldoubleIEEE754 u; struct definition *tmpdef = static_ldouble_declaration->p.definition_new(&static_ldouble_declaration->p, - NULL, 0, 0); + NULL, 0, 0, NULL); struct definition_float *tmpfloat = container_of(tmpdef, struct definition_float, p); struct ctf_stream_pos srcp;