Skip to content
Commit 7314166e authored by Thorsten Blum's avatar Thorsten Blum Committed by Miklos Szeredi
Browse files

ovl: Replace offsetof() with struct_size() in ovl_stack_free()



Compared to offsetof(), struct_size() provides additional compile-time
checks for structs with flexible arrays (e.g., __must_be_array()).

No functional changes intended.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 5aaf6a8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment