summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/testsuite.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-06 03:20:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:26 -0500
commite159e42d8472f36f51e400e351fc43f2a7dc44f5 (patch)
tree641b7a3f25e77a4b8b1c2724287cd243119c411a /source4/lib/talloc/testsuite.c
parentddc10d4d37984246a6547e34a32d629c689c40d1 (diff)
downloadsamba-e159e42d8472f36f51e400e351fc43f2a7dc44f5.tar.gz
samba-e159e42d8472f36f51e400e351fc43f2a7dc44f5.tar.bz2
samba-e159e42d8472f36f51e400e351fc43f2a7dc44f5.zip
r4550: talloc() is now typesafe. It is exactly equivalent to the old talloc_p() macro. Use
talloc_size() if you want the old behaviour. I have kept talloc_p() as an alias for now. Once we change all calls to be plain talloc() then we can remove it. (This used to be commit 2011bbeb841fd6bfccf3d44a49f79203f7f55baa)
Diffstat (limited to 'source4/lib/talloc/testsuite.c')
-rw-r--r--source4/lib/talloc/testsuite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c
index ced3217105..d46964d9b6 100644
--- a/source4/lib/talloc/testsuite.c
+++ b/source4/lib/talloc/testsuite.c
@@ -523,11 +523,11 @@ static BOOL test_realloc(void)
p1 = talloc_realloc(NULL, p1, 20);
CHECK_SIZE(p1, 20);
- talloc(p1, 0);
+ talloc_new(p1);
p2 = talloc_realloc(p1, NULL, 30);
- talloc(p1, 0);
+ talloc_new(p1);
p2 = talloc_realloc(p1, p2, 40);