s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[samba.git] / source3 / lib / smbconf / smbconf_reg.c
index 599ebb7b46e84004894686f34b50dd62e30766e9..92dbcbae1c1aceae934f4e160e4f4176da49f07a 100644 (file)
@@ -259,7 +259,7 @@ static sbcErr smbconf_reg_set_multi_sz_value(struct registry_key *key,
                goto done;
        }
 
-       value = TALLOC_ZERO_P(tmp_ctx, struct registry_value);
+       value = talloc_zero(tmp_ctx, struct registry_value);
        if (value == NULL) {
                err = SBC_ERR_NOMEM;
                goto done;
@@ -604,7 +604,7 @@ static sbcErr smbconf_reg_init(struct smbconf_ctx *ctx, const char *path)
                goto done;
        }
 
-       ctx->data = TALLOC_ZERO_P(ctx, struct reg_private_data);
+       ctx->data = talloc_zero(ctx, struct reg_private_data);
 
        werr = ntstatus_to_werror(registry_create_admin_token(ctx, &token));
        if (!W_ERROR_IS_OK(werr)) {
@@ -913,7 +913,7 @@ static sbcErr smbconf_reg_get_share(struct smbconf_ctx *ctx,
                goto done;
        }
 
-       tmp_service = TALLOC_ZERO_P(tmp_ctx, struct smbconf_service);
+       tmp_service = talloc_zero(tmp_ctx, struct smbconf_service);
        if (tmp_service == NULL) {
                err = SBC_ERR_NOMEM;
                goto done;