summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-10 11:35:40 +0100
committerMichael Adam <obnox@samba.org>2008-02-11 15:07:46 +0100
commita275310bcba62343a759ee7578929eca866fc759 (patch)
treed8c44edb5697e146e0aa542749b1ca4bd0dc52f7
parent59820dcb43bcb2cbb5aad9d2a4dbeed90cc61d98 (diff)
downloadsamba-a275310bcba62343a759ee7578929eca866fc759.tar.gz
samba-a275310bcba62343a759ee7578929eca866fc759.tar.bz2
samba-a275310bcba62343a759ee7578929eca866fc759.zip
Fix a c++ warning
(This used to be commit 9f402c607f44663cab91cc7d2139f62b84c99cc0)
-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 35ed447e45..12b85f5a65 100644
--- a/source4/lib/talloc/talloc.c
+++ b/source4/lib/talloc/talloc.c
@@ -968,7 +968,8 @@ void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *n
if (tc->flags & TALLOC_FLAG_POOLMEM) {
new_ptr = talloc_alloc_pool(tc, size + TC_HDR_SIZE);
- *talloc_pool_objectcount(tc->pool) -= 1;
+ *talloc_pool_objectcount((struct talloc_chunk *)
+ (tc->pool)) -= 1;
if (new_ptr == NULL) {
new_ptr = malloc(TC_HDR_SIZE+size);