projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make API CTF-agnostic
[babeltrace.git]
/
lib
/
ctf-writer
/
serialize.c
diff --git
a/lib/ctf-writer/serialize.c
b/lib/ctf-writer/serialize.c
index 6461a7cb3386ee24d22cf24008adc55307a2362d..46ec8afbe121d8beb559c24858428c85347a455a 100644
(file)
--- a/
lib/ctf-writer/serialize.c
+++ b/
lib/ctf-writer/serialize.c
@@
-68,7
+68,8
@@
int aligned_integer_write(struct bt_ctf_stream_pos *pos, union intval value,
unsigned int alignment, unsigned int size, bt_bool is_signed,
enum bt_ctf_byte_order byte_order)
{
unsigned int alignment, unsigned int size, bt_bool is_signed,
enum bt_ctf_byte_order byte_order)
{
- bt_bool rbo = ((int) byte_order != BT_MY_BYTE_ORDER); /* reverse byte order */
+ /* reverse byte order */
+ bt_bool rbo = (byte_order != BT_CTF_MY_BYTE_ORDER);
if (!bt_ctf_stream_pos_align(pos, alignment))
return -EFAULT;
if (!bt_ctf_stream_pos_align(pos, alignment))
return -EFAULT;
This page took
0.024963 seconds
and
4
git commands to generate.