summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-28 17:40:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:52 -0500
commit98a1bd7fb3c3affa88972d5766753e6810cd1410 (patch)
tree96325fae80c47b250e159333eb116bc669bd31fc /source4
parent45b8c41038c587b5993c6219bf6698323cf93494 (diff)
downloadsamba-98a1bd7fb3c3affa88972d5766753e6810cd1410.tar.gz
samba-98a1bd7fb3c3affa88972d5766753e6810cd1410.tar.bz2
samba-98a1bd7fb3c3affa88972d5766753e6810cd1410.zip
r17892: fix the last talloc c++ warning
metze (This used to be commit 6955ffe4544eddd9e34461f57858480b1acf49c9)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/talloc/talloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c
index 293775b1ca..7ba3e5f3ab 100644
--- a/source4/lib/talloc/talloc.c
+++ b/source4/lib/talloc/talloc.c
@@ -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 {