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=2daadf91e40de1325832d39e867ab6ff38e826f0;hp=2e0bd5ce57ea78b42994e13b4ddf05e19bc79ae5;hb=ca334c7230d120ffe211efbfd6efe467b5d4d794;hpb=493330cb8cd73be8a598308b78f0fc1d4912843a diff --git a/formats/ctf/types/float.c b/formats/ctf/types/float.c index 2e0bd5ce..2daadf91 100644 --- a/formats/ctf/types/float.c +++ b/formats/ctf/types/float.c @@ -197,7 +197,7 @@ int ctf_float_read(struct bt_stream_pos *ppos, struct bt_definition *definition) } tmpfloat = container_of(tmpdef, struct definition_float, p); memset(&destp, 0, sizeof(destp)); - ctf_init_pos(&destp, -1, O_RDWR); + ctf_init_pos(&destp, NULL, -1, O_RDWR); mmap_align_set_addr(&mma, (char *) u.bits); destp.base_mma = &mma; destp.packet_size = sizeof(u) * CHAR_BIT; @@ -253,7 +253,7 @@ int ctf_float_write(struct bt_stream_pos *ppos, struct bt_definition *definition goto end; } tmpfloat = container_of(tmpdef, struct definition_float, p); - ctf_init_pos(&srcp, -1, O_RDONLY); + ctf_init_pos(&srcp, NULL, -1, O_RDONLY); mmap_align_set_addr(&mma, (char *) u.bits); srcp.base_mma = &mma; srcp.packet_size = sizeof(u) * CHAR_BIT;