s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[nivanova/samba-autobuild/.git] / source3 / winbindd / idmap_adex / gc_util.c
index e4bf8d59d7a595c8dbe1e0a2c42dbf5d03648cc4..461a2e679b7a2aadba202d84a4aa965dbcfe6b3e 100644 (file)
@@ -191,7 +191,7 @@ static NTSTATUS gc_add_forest(const char *domain)
                return NT_STATUS_OK;
        }
 
-       if ((gc = TALLOC_ZERO_P(NULL, struct gc_info)) == NULL) {
+       if ((gc = talloc_zero(NULL, struct gc_info)) == NULL) {
                nt_status = NT_STATUS_NO_MEMORY;
                BAIL_ON_NTSTATUS_ERROR(nt_status);
        }
@@ -781,10 +781,10 @@ done:
 #endif
 
        if (count == 0) {
-               ads_tmp = TALLOC_ARRAY(NULL, ADS_STRUCT*, 1);
+               ads_tmp = talloc_array(NULL, ADS_STRUCT*, 1);
                BAIL_ON_PTR_ERROR(ads_tmp, nt_status);
 
-               msg_tmp = TALLOC_ARRAY(NULL, LDAPMessage*, 1);
+               msg_tmp = talloc_array(NULL, LDAPMessage*, 1);
                BAIL_ON_PTR_ERROR(msg_tmp, nt_status);
        } else {
                ads_tmp = talloc_realloc(*ads_list, *ads_list, ADS_STRUCT*,