X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Ffloat.c;h=8bb3f743be2a27bc0e79cbf8380093ce5a6797ef;hp=a30c3ea4903f025ad1ffaed31a3db1a230476747;hb=8563e754804a60faf870282d494ea419dc87016b;hpb=809cbff588674d09c14b128eb95d332048382770 diff --git a/formats/ctf/types/float.c b/formats/ctf/types/float.c index a30c3ea4..8bb3f743 100644 --- a/formats/ctf/types/float.c +++ b/formats/ctf/types/float.c @@ -120,7 +120,7 @@ void ctf_float_read(struct stream_pos *ppos, struct definition *definition) container_of(tmpdef, struct definition_float, p); struct ctf_stream_pos destp; - ctf_init_pos(&destp, -1); + ctf_init_pos(&destp, -1, O_WRONLY); destp.base = (char *) u.bits; ctf_align_pos(pos, float_declaration->p.alignment); @@ -144,7 +144,7 @@ void ctf_float_write(struct stream_pos *ppos, struct definition *definition) container_of(tmpdef, struct definition_float, p); struct ctf_stream_pos srcp; - ctf_init_pos(&srcp, -1); + ctf_init_pos(&srcp, -1, O_RDONLY); srcp.base = (char *) u.bits; u.v = float_definition->value;