]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/sizeof.h: Define SIZEOF_ARRAY() in terms of countof()
authorAlejandro Colomar <alx@kernel.org>
Wed, 21 May 2025 11:58:05 +0000 (13:58 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 3 Jun 2025 14:34:55 +0000 (09:34 -0500)
commitc5d8fcb4cdd96547563d382fece1e7ea6dff19de
tree7205356106a9187b3662ff92f95bc6bcd5e51bad
parentba3456c9fd7decc16c6aaacd4c6651cc58438149
lib/sizeof.h: Define SIZEOF_ARRAY() in terms of countof()

This will allow us to eventually get rid of must_be_array(), once
we make sure countof() is safe.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/sizeof.h