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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/pam_unix/passverify.h') 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