aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-17 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-17 08:00:00 +0000
commit4f25140ae411644dc14a4f9f2b23840b3de51816 (patch)
tree1e19d872fe90015f53469fa0b7c8a9c8ddd29d63 /modules
parentfba347d87076a0efe7855fd345124fd5345e986e (diff)
downloadpam-4f25140ae411644dc14a4f9f2b23840b3de51816.tar.gz
pam-4f25140ae411644dc14a4f9f2b23840b3de51816.tar.bz2
pam-4f25140ae411644dc14a4f9f2b23840b3de51816.zip
pam_rootok: silence compilation warning
* modules/pam_rootok/pam_rootok.c (log_callback) [HAVE_LIBAUDIT]: Silence compilation warning.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_rootok/pam_rootok.c4
1 files changed, 2 insertions, 2 deletions
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;