libsmbconf: Remove use of some Samba3-specific macros.
[ira/wip.git] / lib / smbconf / smbconf_util.c
index 5eb5e963ed9279d36287b84b1009d9905f355eab..b309a3454b13d5fee8ad164b9d99ac30fca7236c 100644 (file)
@@ -49,7 +49,7 @@ WERROR smbconf_init_internal(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx,
                return WERR_INVALID_PARAM;
        }
 
-       ctx = TALLOC_ZERO_P(mem_ctx, struct smbconf_ctx);
+       ctx = talloc_zero(mem_ctx, struct smbconf_ctx);
        if (ctx == NULL) {
                return WERR_NOMEM;
        }
@@ -86,7 +86,7 @@ WERROR smbconf_add_string_to_array(TALLOC_CTX *mem_ctx,
                return WERR_INVALID_PARAM;
        }
 
-       new_array = TALLOC_REALLOC_ARRAY(mem_ctx, *array, char *, count + 1);
+       new_array = talloc_realloc(mem_ctx, *array, char *, count + 1);
        if (new_array == NULL) {
                return WERR_NOMEM;
        }