mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
fixed some obvious bugs; still doesn't compile
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include <dns/confparser.h>
|
#include <dns/confparser.h>
|
||||||
#include <dns/view.h>
|
#include <dns/view.h>
|
||||||
#include <dns/zone.h>
|
#include <dns/zone.h>
|
||||||
|
#include <dns/zt.h>
|
||||||
#include <dns/journal.h>
|
#include <dns/journal.h>
|
||||||
|
|
||||||
#define ERRRET(result, function) \
|
#define ERRRET(result, function) \
|
||||||
@@ -111,7 +112,7 @@ query(dns_view_t *view) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (strcasecmp(buf, "journal") == 0) {
|
if (strcasecmp(buf, "journal") == 0) {
|
||||||
dns_journal_print(view->mctx, "dv.isc.org.ixfr");
|
dns_journal_print(view->mctx, "dv.isc.org.ixfr", stdout);
|
||||||
reload = 0;
|
reload = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -215,11 +216,11 @@ main(int argc, char **argv) {
|
|||||||
cbks.optscbk = NULL;
|
cbks.optscbk = NULL;
|
||||||
cbks.optscbkuap = NULL;
|
cbks.optscbkuap = NULL;
|
||||||
|
|
||||||
result = dns_c_parse_namedconf(NULL, conf, mctx, &configctx, &cbks);
|
result = dns_c_parse_namedconf(conf, mctx, &configctx, &cbks);
|
||||||
fprintf(stdout, "%s() returned %s\n", "dns_c_parse_namedconf",
|
fprintf(stdout, "%s() returned %s\n", "dns_c_parse_namedconf",
|
||||||
dns_result_totext(result));
|
dns_result_totext(result));
|
||||||
if (configctx != NULL)
|
if (configctx != NULL)
|
||||||
dns_c_ctx_delete(NULL, &configctx);
|
dns_c_ctx_delete(&configctx);
|
||||||
|
|
||||||
view = ISC_LIST_HEAD(cba.newviews);
|
view = ISC_LIST_HEAD(cba.newviews);
|
||||||
|
|
||||||
@@ -243,11 +244,11 @@ main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
result = dns_c_parse_namedconf(NULL, conf, mctx, &configctx, &cbks);
|
result = dns_c_parse_namedconf(conf, mctx, &configctx, &cbks);
|
||||||
fprintf(stdout, "%s() returned %s\n", "dns_c_parse_namedconf",
|
fprintf(stdout, "%s() returned %s\n", "dns_c_parse_namedconf",
|
||||||
dns_result_totext(result));
|
dns_result_totext(result));
|
||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
result = dns_c_ctx_getdirectory(NULL, configctx, &dir);
|
result = dns_c_ctx_getdirectory(configctx, &dir);
|
||||||
if (result == ISC_R_SUCCESS)
|
if (result == ISC_R_SUCCESS)
|
||||||
chdir(dir);
|
chdir(dir);
|
||||||
view = ISC_LIST_HEAD(cba.newviews);
|
view = ISC_LIST_HEAD(cba.newviews);
|
||||||
|
Reference in New Issue
Block a user