From bc94aa19f30574dffcc56c98307dfab9772e6057 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 18 Sep 2007 13:45:43 +0000 Subject: r25216: make talloc_append_string() a deprecated macro instead of having it as a real function. metze (This used to be commit 2b2e8414650f4793e7fd6e7fb368383ee268948f) --- source4/lib/talloc/talloc.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'source4/lib/talloc/talloc.c') diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index ea32b3273a..4d72c0e871 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -1132,32 +1132,6 @@ char *talloc_strdup(const void *t, const char *p) return __talloc_strlendup(t, p, strlen(p)); } -/* - append to a talloced string -*/ -char *talloc_append_string(const void *t, char *orig, const char *append) -{ - char *ret; - size_t olen = strlen(orig); - size_t alenz; - - if (!append) - return orig; - - alenz = strlen(append) + 1; - - ret = talloc_realloc(t, orig, char, olen + alenz); - if (!ret) - return NULL; - - /* append the string with the trailing \0 */ - memcpy(&ret[olen], append, alenz); - - _talloc_set_name_const(ret, ret); - - return ret; -} - /* strndup with a talloc */ -- cgit