aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_pwhistory/opasswd.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-01-15 15:03:17 +0100
committerChristian Göttsche <cgzones@googlemail.com>2024-01-15 15:03:17 +0100
commit4367ace03d0c7997038662fac89757887cdc5fff (patch)
tree8a4c7cc13dde7f0e0064bf2b7ec6db0c5218054c /modules/pam_pwhistory/opasswd.h
parenta695a03b9d0e15aa3f7e2eafe8e2ad47ab4c7e00 (diff)
downloadpam-4367ace03d0c7997038662fac89757887cdc5fff.tar.gz
pam-4367ace03d0c7997038662fac89757887cdc5fff.tar.bz2
pam-4367ace03d0c7997038662fac89757887cdc5fff.zip
pam_pwhistory: 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.
Diffstat (limited to 'modules/pam_pwhistory/opasswd.h')
-rw-r--r--modules/pam_pwhistory/opasswd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/pam_pwhistory/opasswd.h b/modules/pam_pwhistory/opasswd.h
index 19a4062c..4b981d86 100644
--- a/modules/pam_pwhistory/opasswd.h
+++ b/modules/pam_pwhistory/opasswd.h
@@ -54,6 +54,7 @@
#ifdef HELPER_COMPILE
void
+PAM_FORMAT((printf, 2, 3))
helper_log_err(int err, const char *format, ...);
#endif