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:
parent
ae393c2ed6
commit
f0940f1912
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user