diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-12-31 04:26:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:10 -0500 |
commit | e4b7e8cdf1590d8ed9b1f190cad9ee6734ffe4de (patch) | |
tree | da0cc3b2c1dd77858f80102ca5e87bfebd98528b /source4 | |
parent | 8d147a4dd30ab94ccd1d8faedc38fad5af69150a (diff) | |
download | samba-e4b7e8cdf1590d8ed9b1f190cad9ee6734ffe4de.tar.gz samba-e4b7e8cdf1590d8ed9b1f190cad9ee6734ffe4de.tar.bz2 samba-e4b7e8cdf1590d8ed9b1f190cad9ee6734ffe4de.zip |
r12633: expose talloc_vasprintf_append()
(This used to be commit 7a0e7074f6d3d38ce92f2b617549d5dbbaf968ef)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/talloc/talloc.c | 5 | ||||
-rw-r--r-- | source4/lib/talloc/talloc.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index 8393d9acb7..ac2fedebdc 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -1045,10 +1045,7 @@ char *talloc_asprintf(const void *t, const char *fmt, ...) * and return @p s, which may have moved. Good for gradually * accumulating output into a string buffer. **/ - -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) +char *talloc_vasprintf_append(char *s, const char *fmt, va_list ap) { struct talloc_chunk *tc; int len, s_len; diff --git a/source4/lib/talloc/talloc.h b/source4/lib/talloc/talloc.h index 2c5d04d605..68bf24e0b8 100644 --- a/source4/lib/talloc/talloc.h +++ b/source4/lib/talloc/talloc.h @@ -125,6 +125,7 @@ char *talloc_strdup(const void *t, const char *p); char *talloc_strndup(const void *t, const char *p, size_t n); char *talloc_append_string(const void *t, char *orig, const char *append); char *talloc_vasprintf(const void *t, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0); +char *talloc_vasprintf_append(char *s, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0); char *talloc_asprintf(const void *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3); char *talloc_asprintf_append(char *s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3); |