r17892: fix the last talloc c++ warning
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Aug 2006 17:40:31 +0000 (17:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:52 +0000 (14:16 -0500)
metze
(This used to be commit 6955ffe4544eddd9e34461f57858480b1acf49c9)

source4/lib/talloc/talloc.c

index 293775b1ca0e5bd352f8ba84ee017afd1d47eae6..7ba3e5f3ab02c39b90bc3f1fd00e7f9ebd52ca84 100644 (file)
@@ -813,7 +813,8 @@ void talloc_report_depth(const void *ptr, FILE *f, int depth)
 
        for (c=tc->child;c;c=c->next) {
                if (c->name == TALLOC_MAGIC_REFERENCE) {
-                       struct talloc_reference_handle *handle = TC_PTR_FROM_CHUNK(c);
+                       struct talloc_reference_handle *handle =
+                               (struct talloc_reference_handle *)TC_PTR_FROM_CHUNK(c);
                        const char *name2 = talloc_get_name(handle->ptr);
                        fprintf(f, "%*sreference to: %s\n", depth*4, "", name2);
                } else {