From a695a03b9d0e15aa3f7e2eafe8e2ad47ab4c7e00 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Mon, 15 Jan 2024 15:02:58 +0100 Subject: pam_unix: annotate declaration with format attribute Instead of annotating the function definition with the format attribute annotate the declaration, so the annotation is visible at call sites. --- modules/pam_unix/passverify.c | 1 - modules/pam_unix/passverify.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_unix') diff --git a/modules/pam_unix/passverify.c b/modules/pam_unix/passverify.c index c6515a65..045ea785 100644 --- a/modules/pam_unix/passverify.c +++ b/modules/pam_unix/passverify.c @@ -1132,7 +1132,6 @@ 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; diff --git a/modules/pam_unix/passverify.h b/modules/pam_unix/passverify.h index 463ef185..9276347c 100644 --- a/modules/pam_unix/passverify.h +++ b/modules/pam_unix/passverify.h @@ -37,6 +37,7 @@ save_old_password(pam_handle_t *pamh, const char *forwho, const char *oldpass, #ifdef HELPER_COMPILE void +PAM_FORMAT((printf, 2, 3)) helper_log_err(int err, const char *format,...); int -- cgit v1.2.3