From cc55aef7c116d03ba2817625b0ba9edb378525e3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Jan 2005 02:32:43 +0000 Subject: r4547: - added talloc_new(ctx) macro that is a neater form of the common talloc(ctx, 0) call. - cleaned up some talloc usage in various files I'd like to get to the point that we have no calls to talloc(), at which point we will rename talloc_p() to talloc(), to encourage everyone to use the typesafe functions. (This used to be commit e6c81d7c9f8a6938947d3c1c8a971a0d6d50b67a) --- source4/torture/basic/denytest.c | 4 ++-- source4/torture/local/idtree.c | 2 +- source4/torture/raw/search.c | 4 ++-- source4/torture/torture_util.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c index 0e0032058f..7308805da7 100644 --- a/source4/torture/basic/denytest.c +++ b/source4/torture/basic/denytest.c @@ -1812,7 +1812,7 @@ static BOOL torture_ntdenytest(struct smbcli_state *cli1, struct smbcli_state *c for (i=0;itree, fname); diff --git a/source4/torture/local/idtree.c b/source4/torture/local/idtree.c index 7d0e3e84a8..3f30d7123f 100644 --- a/source4/torture/local/idtree.c +++ b/source4/torture/local/idtree.c @@ -31,7 +31,7 @@ BOOL torture_local_idtree(void) BOOL ret = True; extern int torture_numops; int n = torture_numops; - void *ctx = talloc(NULL, 0); + void *ctx = talloc_new(NULL); idr = idr_init(ctx); diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c index 5064c1a061..55acaba2b2 100644 --- a/source4/torture/raw/search.c +++ b/source4/torture/raw/search.c @@ -635,7 +635,7 @@ static BOOL test_many_files(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) for (t=0;t