lib/sssd.h: sssd_flush_cache(): Define as static inline function

Being a macro, the unused return value triggers a diagnostic.
This probably needs further investigation, but we have the issue linked
below for that.

Link: <https://github.com/shadow-maint/shadow/issues/1221>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2025-02-21 08:41:37 +01:00 committed by Serge Hallyn
parent e91d31a97f
commit 40be785f8a

View File

@ -10,7 +10,11 @@
#ifdef USE_SSSD
extern int sssd_flush_cache (int dbflags);
#else
#define sssd_flush_cache(service) (0)
static inline int
sssd_flush_cache(int)
{
return 0;
}
#endif
#endif