s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[ira/tdb.git] / source3 / libgpo / gpo_reg.c
index 29b31aec8edec2422755d5cfc26c46aaf297ef55..5142e919cc981e500bda634ab7af4d804b86ec56 100644 (file)
@@ -36,7 +36,7 @@ struct security_token *registry_create_system_token(TALLOC_CTX *mem_ctx)
 {
        struct security_token *token = NULL;
 
-       token = TALLOC_ZERO_P(mem_ctx, struct security_token);
+       token = talloc_zero(mem_ctx, struct security_token);
        if (!token) {
                DEBUG(1,("talloc failed\n"));
                return NULL;
@@ -74,7 +74,7 @@ WERROR gp_init_reg_ctx(TALLOC_CTX *mem_ctx,
                return werr;
        }
 
-       tmp_ctx = TALLOC_ZERO_P(mem_ctx, struct gp_registry_context);
+       tmp_ctx = talloc_zero(mem_ctx, struct gp_registry_context);
        W_ERROR_HAVE_NO_MEMORY(tmp_ctx);
 
        if (token) {
@@ -395,7 +395,7 @@ static WERROR gp_reg_read_groupmembership(TALLOC_CTX *mem_ctx,
        int num_token_sids = 0;
        struct security_token *tmp_token = NULL;
 
-       tmp_token = TALLOC_ZERO_P(mem_ctx, struct security_token);
+       tmp_token = talloc_zero(mem_ctx, struct security_token);
        W_ERROR_HAVE_NO_MEMORY(tmp_token);
 
        path = gp_reg_groupmembership_path(mem_ctx, object_sid, flags);
@@ -602,7 +602,7 @@ static WERROR gp_read_reg_gpo(TALLOC_CTX *mem_ctx,
                return WERR_INVALID_PARAM;
        }
 
-       gpo = TALLOC_ZERO_P(mem_ctx, struct GROUP_POLICY_OBJECT);
+       gpo = talloc_zero(mem_ctx, struct GROUP_POLICY_OBJECT);
        W_ERROR_HAVE_NO_MEMORY(gpo);
 
        werr = gp_read_reg_gpovals(mem_ctx, key, gpo);