projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into bindings/python
[babeltrace.git]
/
include
/
babeltrace
/
ctf
/
types.h
diff --git
a/include/babeltrace/ctf/types.h
b/include/babeltrace/ctf/types.h
index fad578ff267d3f88b2a966b9c60f6aeacb334c21..e90464dc76243e02a0c1d250ae973cd48cb45fa0 100644
(file)
--- 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;
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;
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 (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;
max_len = pos->content_size;
else
max_len = pos->packet_size;
This page took
0.025291 seconds
and
4
git commands to generate.