1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

r1132: add a PRINTF_ATTRIBUTE to ndr_pull_error() to catch printf style coding errors

This commit is contained in:
Andrew Tridgell 2004-06-14 07:25:38 +00:00 committed by Gerald (Jerry) Carter
parent ae393c2ed6
commit f0940f1912

View File

@ -375,7 +375,8 @@ static NTSTATUS ndr_map_error(enum ndr_err_code err)
/*
return and possibly log an NDR error
*/
NTSTATUS ndr_pull_error(struct ndr_pull *ndr, enum ndr_err_code err, const char *format, ...)
NTSTATUS ndr_pull_error(struct ndr_pull *ndr,
enum ndr_err_code err, const char *format, ...) _PRINTF_ATTRIBUTE(3,4)
{
char *s=NULL;
va_list ap;