mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 03:51:16 -05:00
Changed API to config data structure functions.
This commit is contained in:
parent
841cb62bf6
commit
c2ea2b433c
1 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ zonecbk(dns_c_ctx_t *ctx, dns_c_zone_t *zone, void *uap)
|
|||
(void) ctx;
|
||||
(void) uap;
|
||||
|
||||
dns_c_zone_getname(zone, &zname);
|
||||
dns_c_zone_getname(NULL, zone, &zname);
|
||||
|
||||
fprintf(stderr, "handling zone %s\n", zname);
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ int main (int argc, char **argv) {
|
|||
|
||||
RUNTIME_CHECK(isc_mem_create(0, 0, &mem) == ISC_R_SUCCESS);
|
||||
|
||||
if (dns_c_parse_namedconf(conffile, mem, &configctx, &callbacks) !=
|
||||
if (dns_c_parse_namedconf(NULL, conffile, mem, &configctx, &callbacks) !=
|
||||
ISC_R_SUCCESS) {
|
||||
fprintf(stderr, "parse_configuration failed.\n");
|
||||
exit(1);
|
||||
|
|
@ -115,7 +115,7 @@ int main (int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
dns_c_ctx_print(outfp, 0, configctx);
|
||||
dns_c_ctx_print(NULL, outfp, 0, configctx);
|
||||
|
||||
#if 0
|
||||
/* Test the acl expansion */
|
||||
|
|
@ -133,7 +133,7 @@ int main (int argc, char **argv) {
|
|||
fclose(outfp);
|
||||
}
|
||||
|
||||
dns_c_ctx_delete(&configctx);
|
||||
dns_c_ctx_delete(NULL, &configctx);
|
||||
isc_mem_destroy(&mem);
|
||||
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue