diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-11 13:57:30 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-11-14 00:27:49 +0100 |
commit | a3cef68e9967e2c0257605f2130dd0a53951ab96 (patch) | |
tree | 2c73a085e91345e7e5db9b1ddb69dfa9d9ce8e6d /libpam/include | |
parent | e5e0985f2a479232ff723e3c67b43accaf167785 (diff) | |
download | pam-a3cef68e9967e2c0257605f2130dd0a53951ab96.tar.gz pam-a3cef68e9967e2c0257605f2130dd0a53951ab96.tar.bz2 pam-a3cef68e9967e2c0257605f2130dd0a53951ab96.zip |
libpam: mark _pam_output_debug as printf-style function
Marking _pam_output_debug as printf-style function allows the compiler to
check for potential errors at places where this function is called, like
mismatches in the argument types or insufficient number of arguments.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
Diffstat (limited to 'libpam/include')
-rw-r--r-- | libpam/include/security/_pam_macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpam/include/security/_pam_macros.h b/libpam/include/security/_pam_macros.h index 0d6646cf..b6a5c2e4 100644 --- a/libpam/include/security/_pam_macros.h +++ b/libpam/include/security/_pam_macros.h @@ -123,6 +123,7 @@ static void _pam_output_debug_info(const char *file, const char *fn fclose(logfile); } +PAM_FORMAT((printf, 1, 2)) static void _pam_output_debug(const char *format, ...) { va_list args; |