diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-06-14 07:25:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:39 -0500 |
commit | f0d43daac040c5d30a9735049817f292b8e35a4d (patch) | |
tree | 194e7d0a68a4baf0bbb1f8d531756db46aabbff0 /source4/librpc | |
parent | 4d050d4920ca23c8639adab7a88a1996920fb103 (diff) | |
download | samba-f0d43daac040c5d30a9735049817f292b8e35a4d.tar.gz samba-f0d43daac040c5d30a9735049817f292b8e35a4d.tar.bz2 samba-f0d43daac040c5d30a9735049817f292b8e35a4d.zip |
r1132: add a PRINTF_ATTRIBUTE to ndr_pull_error() to catch printf style coding errors
(This used to be commit f0940f19129f0f2eccc3bb5130b8d2dd0b60f83f)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/ndr/ndr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 8b88a2d2e2..4c99c26d23 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -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; |