X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Ftypes.h;h=4b879634cbe090353b8e09a31e367ce70e93b258;hb=c42266f5b5e089532a968ec380a92f04de370dc7;hp=c25b904bd4563ee8015c8dd2e1898847f53d05ce;hpb=4111096da4c0d2a1b6e56cbd4075a9db98537137;p=babeltrace.git diff --git a/include/babeltrace/ctf/types.h b/include/babeltrace/ctf/types.h index c25b904b..4b879634 100644 --- a/include/babeltrace/ctf/types.h +++ b/include/babeltrace/ctf/types.h @@ -140,7 +140,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; @@ -207,7 +207,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;