diff options
author | Günther Deschner <gd@samba.org> | 2007-02-13 10:56:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:55 -0500 |
commit | 826aa64c45afbdf00f6f172ec1f1fe41a57858ce (patch) | |
tree | ce4da323e0d9d8fe8b12c6925e03a43847fab153 /source3 | |
parent | 8e589ea7f20c92fa7c6d89bb373330e6189d22ea (diff) | |
download | samba-826aa64c45afbdf00f6f172ec1f1fe41a57858ce.tar.gz samba-826aa64c45afbdf00f6f172ec1f1fe41a57858ce.tar.bz2 samba-826aa64c45afbdf00f6f172ec1f1fe41a57858ce.zip |
r21309: Add PRINTF_ATTRIBUTE checks for log statements.
Guenther
(This used to be commit 968dfcc8218cacdd97c2c66929e95f5062ff464a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/pam_winbind.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index 1ee5dba457..67e7767a0f 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -78,6 +78,7 @@ static BOOL _pam_log_is_silent(int ctrl) return on(ctrl, WINBIND_SILENT); } +static void _pam_log(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...) PRINTF_ATTRIBUTE(4,5); static void _pam_log(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...) { va_list args; @@ -117,6 +118,7 @@ static BOOL _pam_log_is_debug_state_enabled(int ctrl) return _pam_log_is_debug_enabled(ctrl); } +static void _pam_log_debug(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...) PRINTF_ATTRIBUTE(4,5); static void _pam_log_debug(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...) { va_list args; @@ -413,6 +415,7 @@ static int _make_remark_v(pam_handle_t * pamh, int flags, int type, const char * return ret; } +static int _make_remark_format(pam_handle_t * pamh, int flags, int type, const char *format, ...) PRINTF_ATTRIBUTE(4,5); static int _make_remark_format(pam_handle_t * pamh, int flags, int type, const char *format, ...) { int ret; |