diff options
author | Stefan Schubert <schubi@suse.de> | 2022-01-13 14:48:39 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-01-13 13:48:39 +0000 |
commit | 3366e250e5f336303f095518726a9cb2de7c2f46 (patch) | |
tree | af746609880cba3810707cdeba034739237d5216 /modules/pam_rootok | |
parent | 14ea1011c64648462bb795c6c5ceb66dae5787b7 (diff) | |
download | pam-3366e250e5f336303f095518726a9cb2de7c2f46.tar.gz pam-3366e250e5f336303f095518726a9cb2de7c2f46.tar.bz2 pam-3366e250e5f336303f095518726a9cb2de7c2f46.zip |
pam_rootok: fix compilation warning when HAVE_LIBAUDIT is not defined
* modules/pam_rootok/pam_rootok.c (log_callback): Move audit_fd
definition under HAVE_LIBAUDIT guard.
Diffstat (limited to 'modules/pam_rootok')
-rw-r--r-- | modules/pam_rootok/pam_rootok.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/pam_rootok/pam_rootok.c b/modules/pam_rootok/pam_rootok.c index dd374c53..9bc15abf 100644 --- a/modules/pam_rootok/pam_rootok.c +++ b/modules/pam_rootok/pam_rootok.c @@ -53,11 +53,10 @@ static int PAM_FORMAT((printf, 2, 3)) log_callback (int type UNUSED, const char *fmt, ...) { - int audit_fd; va_list ap; #ifdef HAVE_LIBAUDIT - audit_fd = audit_open(); + int audit_fd = audit_open(); if (audit_fd >= 0) { char *buf; |