summaryrefslogtreecommitdiff
path: root/source4/lib/talloc.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-22 10:36:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:59 -0500
commit988d65c5d1d24b91d0ab5de316f892e09546984a (patch)
tree75d1eeb27b3f38917cf50f724d2e98c4a0601d42 /source4/lib/talloc.c
parentf9d4bd18681939218d4f6d324e2bce6635cda42f (diff)
downloadsamba-988d65c5d1d24b91d0ab5de316f892e09546984a.tar.gz
samba-988d65c5d1d24b91d0ab5de316f892e09546984a.tar.bz2
samba-988d65c5d1d24b91d0ab5de316f892e09546984a.zip
r2506: Add more printf attributes for format checking.
Andrew Bartlett (This used to be commit 1640272dc36a0cb5bc8e647d06c7cee46022f077)
Diffstat (limited to 'source4/lib/talloc.c')
-rw-r--r--source4/lib/talloc.c8
1 files changed, 5 insertions, 3 deletions
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;