2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

conforming changes

This commit is contained in:
Bob Halley
1999-02-06 01:28:15 +00:00
parent f72d27a58e
commit b5fd61fd19
2 changed files with 8 additions and 7 deletions

View File

@@ -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, &soacount, &nscount,
print_dataset, NULL, mctx); print_dataset, NULL, mctx);
fprintf(stdout, "dns_load_master: %s\n", fprintf(stdout, "dns_master_load: %s\n",
dns_result_totext(result)); dns_result_totext(result));
if (result == DNS_R_SUCCESS) if (result == DNS_R_SUCCESS)
fprintf(stdout, "soacount = %d, nscount = %d\n", fprintf(stdout, "soacount = %d, nscount = %d\n",

View File

@@ -77,9 +77,10 @@ create_name(char *s) {
} }
static void static void
delete_name(void *data) { delete_name(void *data, void *arg) {
dns_name_t *name; dns_name_t *name;
(void)arg;
name = data; name = data;
isc_mem_put(mctx, data, sizeof(dns_name_t) + DNSNAMELEN); isc_mem_put(mctx, data, sizeof(dns_name_t) + DNSNAMELEN);
} }
@@ -129,7 +130,7 @@ main (int argc, char **argv) {
exit(1); exit(1);
} }
result = dns_rbt_create(mctx, delete_name, &rbt); result = dns_rbt_create(mctx, delete_name, NULL, &rbt);
if (result != DNS_R_SUCCESS) { if (result != DNS_R_SUCCESS) {
printf("dns_rbt_create: %s: exiting\n", printf("dns_rbt_create: %s: exiting\n",
dns_result_totext(result)); dns_result_totext(result));
@@ -174,7 +175,7 @@ main (int argc, char **argv) {
result = dns_rbt_deletename(rbt, name, result = dns_rbt_deletename(rbt, name,
ISC_FALSE); ISC_FALSE);
PRINTERR(result); PRINTERR(result);
delete_name(name); delete_name(name, NULL);
} }
} else if (CMDCHECK("nuke")) { } else if (CMDCHECK("nuke")) {
@@ -184,7 +185,7 @@ main (int argc, char **argv) {
result = dns_rbt_deletename(rbt, name, result = dns_rbt_deletename(rbt, name,
ISC_TRUE); ISC_TRUE);
PRINTERR(result); PRINTERR(result);
delete_name(name); delete_name(name, NULL);
} }
} else if (CMDCHECK("search")) { } else if (CMDCHECK("search")) {
@@ -201,7 +202,7 @@ main (int argc, char **argv) {
} else } else
printf("NOT FOUND!\n"); printf("NOT FOUND!\n");
delete_name(name); delete_name(name, NULL);
} }