Dont use the deprecated talloc_append_string()
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 20 Aug 2010 01:03:17 +0000 (11:03 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 20 Aug 2010 01:03:17 +0000 (11:03 +1000)
Use talloc_strdup_append() instead

(This used to be ctdb commit e41581347af5ef26d429d38ed48fa46244f0dbfc)

ctdb/client/ctdb_client.c

index cf7779dc9093140072483ed5f4bf3df805839602..6215dc06ddea091bac673e0f0708fb9557dc6a22 100644 (file)
@@ -18,9 +18,6 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-/* 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 */