From 4f25140ae411644dc14a4f9f2b23840b3de51816 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 17 Aug 2024 08:00:00 +0000 Subject: pam_rootok: silence compilation warning * modules/pam_rootok/pam_rootok.c (log_callback) [HAVE_LIBAUDIT]: Silence compilation warning. --- modules/pam_rootok/pam_rootok.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/pam_rootok/pam_rootok.c b/modules/pam_rootok/pam_rootok.c index 1b88fb19..0c206157 100644 --- a/modules/pam_rootok/pam_rootok.c +++ b/modules/pam_rootok/pam_rootok.c @@ -69,8 +69,8 @@ log_callback (int type UNUSED, const char *fmt, ...) audit_close(audit_fd); return 0; } - audit_log_user_avc_message(audit_fd, AUDIT_USER_AVC, buf, NULL, NULL, - NULL, 0); + (void) !audit_log_user_avc_message(audit_fd, AUDIT_USER_AVC, buf, + NULL, NULL, NULL, 0); audit_close(audit_fd); free(buf); return 0; -- cgit v1.2.3