2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Use the semantic patch to change the usage isc_mem_create() to new API

This commit is contained in:
Ondřej Surý
2019-09-05 18:40:57 +02:00
parent 6bd2eb06cb
commit 4957255d13
85 changed files with 117 additions and 246 deletions

View File

@@ -1462,10 +1462,7 @@ main(int argc, char *argv[]) {
named_g_chrootdir);
}
result = isc_mem_create(0, 0, &named_g_mctx);
if (result != ISC_R_SUCCESS)
named_main_earlyfatal("isc_mem_create() failed: %s",
isc_result_totext(result));
isc_mem_create(&named_g_mctx);
isc_mem_setname(named_g_mctx, "main", NULL);
setup();