]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:lib:messaging:handlers fix cast-align warning
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 8 Apr 2026 22:33:39 +0000 (10:33 +1200)
committerGary Lockyer <gary@samba.org>
Fri, 29 May 2026 03:13:32 +0000 (03:13 +0000)
commite6f275ef42e55e52f0ec985ec09813166b22c550
treeb8eca495ce66be1f0e533f1ab90962810ccc0abd
parent905bb592240664c6ecf74a72db325a007d07df7b
s4:lib:messaging:handlers fix cast-align warning

Have added asserts to check the alignment, as do_inject_build and do_sleep are
only enabled in developer and selftest builds.

The pointers sig_p  and seconds_p where added for code readability, you can
dereference the result of discard_align_p directly i.e.
int sig = *discard_align_p(int, data->data);
but that's not immediately obvious

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
source4/lib/messaging/messaging_handlers.c