diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_pwhistory/opasswd.c | 1 | ||||
-rw-r--r-- | modules/pam_rootok/pam_rootok.c | 1 | ||||
-rw-r--r-- | modules/pam_tally/pam_tally.c | 1 | ||||
-rw-r--r-- | modules/pam_tally2/pam_tally2.c | 1 | ||||
-rw-r--r-- | modules/pam_unix/passverify.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c index ac10f691..40296d59 100644 --- a/modules/pam_pwhistory/opasswd.c +++ b/modules/pam_pwhistory/opasswd.c @@ -89,6 +89,7 @@ typedef struct { } opwd; #ifdef HELPER_COMPILE +PAM_FORMAT((printf, 2, 3)) void helper_log_err(int err, const char *format, ...) { diff --git a/modules/pam_rootok/pam_rootok.c b/modules/pam_rootok/pam_rootok.c index eb9c5eee..dd374c53 100644 --- a/modules/pam_rootok/pam_rootok.c +++ b/modules/pam_rootok/pam_rootok.c @@ -50,6 +50,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv) #ifdef WITH_SELINUX static int +PAM_FORMAT((printf, 2, 3)) log_callback (int type UNUSED, const char *fmt, ...) { int audit_fd; diff --git a/modules/pam_tally/pam_tally.c b/modules/pam_tally/pam_tally.c index 34ae6241..6fd65009 100644 --- a/modules/pam_tally/pam_tally.c +++ b/modules/pam_tally/pam_tally.c @@ -94,6 +94,7 @@ struct tally_options { #ifdef MAIN #define pam_syslog tally_log static void +PAM_FORMAT((printf, 3, 4)) tally_log (const pam_handle_t *pamh UNUSED, int priority UNUSED, const char *fmt, ...) { diff --git a/modules/pam_tally2/pam_tally2.c b/modules/pam_tally2/pam_tally2.c index 117df699..bcf3188c 100644 --- a/modules/pam_tally2/pam_tally2.c +++ b/modules/pam_tally2/pam_tally2.c @@ -120,6 +120,7 @@ struct tally_options { #ifdef MAIN #define pam_syslog tally_log static void +PAM_FORMAT((printf, 3, 4)) tally_log (const pam_handle_t *pamh UNUSED, int priority UNUSED, const char *fmt, ...) { diff --git a/modules/pam_unix/passverify.c b/modules/pam_unix/passverify.c index c0fbc987..f6132f80 100644 --- a/modules/pam_unix/passverify.c +++ b/modules/pam_unix/passverify.c @@ -1117,6 +1117,7 @@ helper_verify_password(const char *name, const char *p, int nullok) } void +PAM_FORMAT((printf, 2, 3)) helper_log_err(int err, const char *format, ...) { va_list args; |