r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
[tprouty/samba.git] / source4 / lib / idtree.c
index c4370a812d8f0d3166cf8ae7224e6bc8679bae3f..82c1cdd42a9e8a0b545217ed90f3b9b371c8473b 100644 (file)
@@ -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);
 }
 
 /*