mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
conforming changes
This commit is contained in:
parent
f72d27a58e
commit
b5fd61fd19
@ -68,10 +68,10 @@ main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
|
||||
result = dns_load_master(argv[1], &origin, &origin, 1,
|
||||
result = dns_master_load(argv[1], &origin, &origin, 1,
|
||||
&soacount, &nscount,
|
||||
print_dataset, NULL, mctx);
|
||||
fprintf(stdout, "dns_load_master: %s\n",
|
||||
fprintf(stdout, "dns_master_load: %s\n",
|
||||
dns_result_totext(result));
|
||||
if (result == DNS_R_SUCCESS)
|
||||
fprintf(stdout, "soacount = %d, nscount = %d\n",
|
||||
|
@ -77,9 +77,10 @@ create_name(char *s) {
|
||||
}
|
||||
|
||||
static void
|
||||
delete_name(void *data) {
|
||||
delete_name(void *data, void *arg) {
|
||||
dns_name_t *name;
|
||||
|
||||
(void)arg;
|
||||
name = data;
|
||||
isc_mem_put(mctx, data, sizeof(dns_name_t) + DNSNAMELEN);
|
||||
}
|
||||
@ -129,7 +130,7 @@ main (int argc, char **argv) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
result = dns_rbt_create(mctx, delete_name, &rbt);
|
||||
result = dns_rbt_create(mctx, delete_name, NULL, &rbt);
|
||||
if (result != DNS_R_SUCCESS) {
|
||||
printf("dns_rbt_create: %s: exiting\n",
|
||||
dns_result_totext(result));
|
||||
@ -174,7 +175,7 @@ main (int argc, char **argv) {
|
||||
result = dns_rbt_deletename(rbt, name,
|
||||
ISC_FALSE);
|
||||
PRINTERR(result);
|
||||
delete_name(name);
|
||||
delete_name(name, NULL);
|
||||
}
|
||||
|
||||
} else if (CMDCHECK("nuke")) {
|
||||
@ -184,7 +185,7 @@ main (int argc, char **argv) {
|
||||
result = dns_rbt_deletename(rbt, name,
|
||||
ISC_TRUE);
|
||||
PRINTERR(result);
|
||||
delete_name(name);
|
||||
delete_name(name, NULL);
|
||||
}
|
||||
|
||||
} else if (CMDCHECK("search")) {
|
||||
@ -201,7 +202,7 @@ main (int argc, char **argv) {
|
||||
|
||||
} else
|
||||
printf("NOT FOUND!\n");
|
||||
delete_name(name);
|
||||
delete_name(name, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user