X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Fstruct.c;h=2a3fa4c5366c4c5730f988edb9cc74e2a812ed7a;hp=dc3a06eb0a8bcda6b6474d7a426d275fee5f0ba8;hb=46322b331aefc5739efd841df72d1928e35050e6;hpb=0337dd70c0f441db8c504ab7899dd89f6a22f89f diff --git a/formats/ctf/types/struct.c b/formats/ctf/types/struct.c index dc3a06eb..2a3fa4c5 100644 --- a/formats/ctf/types/struct.c +++ b/formats/ctf/types/struct.c @@ -18,13 +18,15 @@ #include -void ctf_struct_begin(struct stream_pos *pos, +void ctf_struct_begin(struct stream_pos *ppos, const struct declaration_struct *struct_declaration) { - align_pos(pos, struct_declaration->p.alignment); + struct ctf_stream_pos *pos = ctf_pos(ppos); + + ctf_align_pos(pos, struct_declaration->p.alignment); } -void ctf_struct_end(struct stream_pos *pos, +void ctf_struct_end(struct stream_pos *ppos, const struct declaration_struct *struct_declaration) { }