init pos cleanup
[babeltrace.git] / formats / ctf / types / float.c
index a30c3ea4903f025ad1ffaed31a3db1a230476747..8bb3f743be2a27bc0e79cbf8380093ce5a6797ef 100644 (file)
@@ -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;
This page took 0.023002 seconds and 4 git commands to generate.