summaryrefslogtreecommitdiff
path: root/source3/lib/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/bitmap.c')
-rw-r--r--source3/lib/bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index bd56b4aad1..5216b05c58 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -29,12 +29,12 @@ struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n)
{
struct bitmap *bm;
- bm = TALLOC_P(mem_ctx, struct bitmap);
+ bm = talloc(mem_ctx, struct bitmap);
if (!bm) return NULL;
bm->n = n;
- bm->b = TALLOC_ZERO_ARRAY(bm, uint32, (n+31)/32);
+ bm->b = talloc_zero_array(bm, uint32, (n+31)/32);
if (!bm->b) {
TALLOC_FREE(bm);
return NULL;