From: Todd C. Miller Date: Sun, 18 Aug 2013 20:21:29 +0000 (-0600) Subject: Add __printflike to audit_failure. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f091f478b4a6d27c4d9c2ccb2144fb6666362b7;p=sudo Add __printflike to audit_failure. --- diff --git a/plugins/sudoers/logging.h b/plugins/sudoers/logging.h index d1b620eac..0d80c3cec 100644 --- a/plugins/sudoers/logging.h +++ b/plugins/sudoers/logging.h @@ -61,7 +61,7 @@ bool sudoers_setlocale(int newlocale, int *prevlocale); int sudoers_getlocale(void); void audit_success(char *exec_args[]); -void audit_failure(char *exec_args[], char const *const fmt, ...); +void audit_failure(char *exec_args[], char const *const fmt, ...) __printflike(2, 3);; void log_allowed(int status); void log_auth_failure(int status, int tries); void log_denial(int status, bool inform_user);