From: Ronnie Sahlberg Date: Fri, 20 Aug 2010 01:03:17 +0000 (+1000) Subject: Dont use the deprecated talloc_append_string() X-Git-Url: http://git.samba.org/?p=metze%2Fctdb%2Fwip.git;a=commitdiff_plain;h=e41581347af5ef26d429d38ed48fa46244f0dbfc Dont use the deprecated talloc_append_string() Use talloc_strdup_append() instead --- diff --git a/client/ctdb_client.c b/client/ctdb_client.c index cf7779dc..6215dc06 100644 --- a/client/ctdb_client.c +++ b/client/ctdb_client.c @@ -18,9 +18,6 @@ along with this program; if not, see . */ -/* for talloc_append_string() */ -#define TALLOC_DEPRECATED 1 - #include "includes.h" #include "db_wrap.h" #include "lib/tdb/include/tdb.h" @@ -3837,7 +3834,7 @@ int switch_from_server_to_client(struct ctdb_context *ctdb, const char *fmt, ... /* Add extra information so we can identify this in the logs */ va_start(ap, fmt); - debug_extra = talloc_append_string(NULL, talloc_vasprintf(NULL, fmt, ap), ":"); + debug_extra = talloc_strdup_append(talloc_vasprintf(NULL, fmt, ap), ":"); va_end(ap); /* shutdown the transport */