]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/search/l/: LFIND(): Add macro
authorAlejandro Colomar <alx@kernel.org>
Thu, 14 Nov 2024 14:21:00 +0000 (15:21 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 24 Jan 2025 13:58:13 +0000 (07:58 -0600)
commite7f5f564c5cba53e8826b6c6448e394d9e9fa887
treebe9a7aa36a972c368634ea63a7ceae85bd0930f2
parent224848ebb6483faab8fef8db43d228b5d3eb465e
lib/search/l/: LFIND(): Add macro

The use of typeof() for the function pointer argument was suggested by
Jorenar.  This improves readability of these complex types.

Co-authored-by: Martin Uecker <uecker@tugraz.at>
Cc: Jorenar <dev@jorenar.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/Makefile.am
lib/search/l/lfind.c [new file with mode: 0644]
lib/search/l/lfind.h [new file with mode: 0644]