summaryrefslogtreecommitdiff
path: root/source4/lib/idtree.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-27 07:08:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:15 -0500
commit759da3b915e2006d4c87b5ace47f399accd9ce91 (patch)
tree6bcaf9d4c0e38ef5e975c041d442c4437aa61e5a /source4/lib/idtree.c
parent1e42cacf6a8643bd633f631c212d71760852abbc (diff)
downloadsamba-759da3b915e2006d4c87b5ace47f399accd9ce91.tar.gz
samba-759da3b915e2006d4c87b5ace47f399accd9ce91.tar.bz2
samba-759da3b915e2006d4c87b5ace47f399accd9ce91.zip
r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
Diffstat (limited to 'source4/lib/idtree.c')
-rw-r--r--source4/lib/idtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/idtree.c b/source4/lib/idtree.c
index c4370a812d..82c1cdd42a 100644
--- a/source4/lib/idtree.c
+++ b/source4/lib/idtree.c
@@ -87,7 +87,7 @@ static void free_layer(struct idr_context *idp, struct idr_layer *p)
static int idr_pre_get(struct idr_context *idp)
{
while (idp->id_free_cnt < IDR_FREE_MAX) {
- struct idr_layer *new = talloc_zero_p(idp, struct idr_layer);
+ struct idr_layer *new = talloc_zero(idp, struct idr_layer);
if(new == NULL)
return (0);
free_layer(idp, new);
@@ -313,7 +313,7 @@ static int _idr_remove(struct idr_context *idp, int id)
*/
struct idr_context *idr_init(TALLOC_CTX *mem_ctx)
{
- return talloc_zero_p(mem_ctx, struct idr_context);
+ return talloc_zero(mem_ctx, struct idr_context);
}
/*