X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Ftypes.h;h=e90464dc76243e02a0c1d250ae973cd48cb45fa0;hb=024e61817685a20caceb4e3ef3bdc019a7af6b6e;hp=fad578ff267d3f88b2a966b9c60f6aeacb334c21;hpb=70fd5a515016525961d4bef0d627616abdc9bc28;p=babeltrace.git diff --git a/include/babeltrace/ctf/types.h b/include/babeltrace/ctf/types.h index fad578ff..e90464dc 100644 --- a/include/babeltrace/ctf/types.h +++ b/include/babeltrace/ctf/types.h @@ -141,7 +141,7 @@ int ctf_move_pos(struct ctf_stream_pos *pos, uint64_t bit_offset) printf_debug("ctf_move_pos test EOF: %" PRId64 "\n", pos->offset); if (unlikely(pos->offset == EOF)) return 0; - if (pos->flags & PROT_READ) + if (pos->prot == PROT_READ) max_len = pos->content_size; else max_len = pos->packet_size; @@ -208,7 +208,7 @@ int ctf_pos_access_ok(struct ctf_stream_pos *pos, uint64_t bit_len) if (unlikely(pos->offset == EOF)) return 0; - if (pos->flags & PROT_READ) + if (pos->prot == PROT_READ) max_len = pos->content_size; else max_len = pos->packet_size;