diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-10 11:35:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-02-11 15:07:46 +0100 |
commit | a275310bcba62343a759ee7578929eca866fc759 (patch) | |
tree | d8c44edb5697e146e0aa542749b1ca4bd0dc52f7 /source4/lib/talloc/talloc.c | |
parent | 59820dcb43bcb2cbb5aad9d2a4dbeed90cc61d98 (diff) | |
download | samba-a275310bcba62343a759ee7578929eca866fc759.tar.gz samba-a275310bcba62343a759ee7578929eca866fc759.tar.bz2 samba-a275310bcba62343a759ee7578929eca866fc759.zip |
Fix a c++ warning
(This used to be commit 9f402c607f44663cab91cc7d2139f62b84c99cc0)
Diffstat (limited to 'source4/lib/talloc/talloc.c')
-rw-r--r-- | source4/lib/talloc/talloc.c | 3 |
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); |