s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()
[ira/wip.git] / source3 / libgpo / gpo_reg.c
index 375a2d31ffe50e3584d1ab1404d8d9e88d648ef8..29b31aec8edec2422755d5cfc26c46aaf297ef55 100644 (file)
@@ -25,6 +25,8 @@
 #include "registry/reg_backend_db.h"
 #include "registry/reg_api_util.h"
 #include "registry/reg_init_basic.h"
+#include "../libcli/security/security.h"
+#include "../libcli/registry/util_reg.h"
 
 
 /****************************************************************
@@ -899,7 +901,7 @@ bool add_gp_registry_entry_to_array(TALLOC_CTX *mem_ctx,
                                    struct gp_registry_entry **entries,
                                    size_t *num)
 {
-       *entries = TALLOC_REALLOC_ARRAY(mem_ctx, *entries,
+       *entries = talloc_realloc(mem_ctx, *entries,
                                        struct gp_registry_entry,
                                        (*num)+1);