HomeClusterLabs Projects

totempg: Fix alignment handling

Description

totempg: Fix alignment handling

Some platforms requires aligned memory access. For such platforms,
special code was added using address modulo 4 to check if aligning is
needed or not. This may be problem for 64 bits platforms. Also check in
app_deliver_fn was incorrect and always true.

Solution is to use modulo sizeof pointer and add parentheses to fix the
check in app_deliver_fn function.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>

Details

Provenance
jfriesseAuthored on Jan 31 2022, 5:31 AM
Parents
rCada1cfa02146: pkgconfig: Export corosysconfdir
Branches
Unknown
Tags
Unknown

Event Timeline