summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-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;