From 988d65c5d1d24b91d0ab5de316f892e09546984a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 Sep 2004 10:36:55 +0000 Subject: r2506: Add more printf attributes for format checking. Andrew Bartlett (This used to be commit 1640272dc36a0cb5bc8e647d06c7cee46022f077) --- source4/lib/talloc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/lib/talloc.c b/source4/lib/talloc.c index e9fd7e8baf..c236834d91 100644 --- a/source4/lib/talloc.c +++ b/source4/lib/talloc.c @@ -395,7 +395,7 @@ char *talloc_strndup(void *t, const char *p, size_t n) return ret; } -char *talloc_vasprintf(void *t, const char *fmt, va_list ap) +char *talloc_vasprintf(void *t, const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(2,0) { int len; char *ret; @@ -437,9 +437,11 @@ char *talloc_asprintf(void *t, const char *fmt, ...) _PRINTF_ATTRIBUTE(2,3) * accumulating output into a string buffer. **/ -char *talloc_vasprintf_append(char *s, - const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(2,0) +static char *talloc_vasprintf_append(char *s, + const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0); +static char *talloc_vasprintf_append(char *s, + const char *fmt, va_list ap) { int len, s_len; va_list ap2; -- cgit