summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-10-20 12:18:10 -0700
committerAndrew Bartlett <abartlet@samba.org>2020-11-09 02:46:49 +0000
commit86eb6423bdcedf3433f3dbcf026573a238cf0d87 (patch)
treeffe417e90498595626ca2c6bd85b5e33b9af1005 /lib/talloc
parent710196f0cc5ac4f9a5f9b0d2fc11376f21207743 (diff)
downloadsamba-86eb6423bdcedf3433f3dbcf026573a238cf0d87.tar.gz
lib: talloc: Cleanup. Use consistent preprocessor logic macros.
Match other use of ALWAYS_REALLOC. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14540 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/talloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index e476f3e2d05..54250c1b67d 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -1898,7 +1898,7 @@ _PUBLIC_ void *_talloc_realloc(const void *context, void *ptr, size_t size, cons
*/
_talloc_chunk_set_free(tc, NULL);
-#if ALWAYS_REALLOC
+#if (ALWAYS_REALLOC != 0)
if (pool_hdr) {
new_ptr = tc_alloc_pool(tc, size + TC_HDR_SIZE, 0);
pool_hdr->object_count--;