summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-10 11:35:40 +0100
committerVolker Lendecke <vl@samba.org>2008-01-10 12:28:20 +0100
commit138954e70e18e53f1ae81bad4641380bc8ab3bd3 (patch)
treeffe3a8d127d2666d914b0c7c87d1afe94e353b34 /source3
parent97a50593fe86456a72762ba4a768614de23c3f14 (diff)
downloadsamba-138954e70e18e53f1ae81bad4641380bc8ab3bd3.tar.gz
samba-138954e70e18e53f1ae81bad4641380bc8ab3bd3.tar.bz2
samba-138954e70e18e53f1ae81bad4641380bc8ab3bd3.zip
Fix a c++ warning
(This used to be commit ee905a085fff5410d02c3e5fa2664e989de4afd4)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/talloc/talloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/talloc/talloc.c b/source3/lib/talloc/talloc.c
index 8683e361a6..9dcd8a2a83 100644
--- a/source3/lib/talloc/talloc.c
+++ b/source3/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);