2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

formatting fixups (a few lines were over 79 char).

This commit is contained in:
David Lawrence 1999-03-16 22:57:32 +00:00
parent bbf390959d
commit f39a760ab0

View File

@ -700,11 +700,11 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
dns_name_init(tmp_name, name1_offsets); dns_name_init(tmp_name, name1_offsets);
if (foundname != NULL) { if (foundname != NULL) {
current_foundname = current_foundname =
dns_fixedname_name(&foundname1); dns_fixedname_name(&foundname1);
new_foundname = new_foundname =
dns_fixedname_name(&foundname2); dns_fixedname_name(&foundname2);
dns_fixedname_init(&foundname2); dns_fixedname_init(&foundname2);
} }
} else { } else {
@ -713,11 +713,11 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
dns_name_init(tmp_name, name2_offsets); dns_name_init(tmp_name, name2_offsets);
if (foundname != NULL) { if (foundname != NULL) {
current_foundname = current_foundname =
dns_fixedname_name(&foundname2); dns_fixedname_name(&foundname2);
new_foundname = new_foundname =
dns_fixedname_name(&foundname1); dns_fixedname_name(&foundname1);
dns_fixedname_init(&foundname1); dns_fixedname_init(&foundname1);
} }
} }
@ -727,26 +727,26 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
if (foundname != NULL) { if (foundname != NULL) {
/* /*
* Build foundname by getting the common * Build foundname by getting the
* labels and prefixing them to the * common labels and prefixing them
* current foundname. * to the current foundname.
*/ */
dns_name_getlabelsequence(search_name, dns_name_getlabelsequence(search_name,
first_common_label, first_common_label,
current_labels, current_labels,
tmp_name); tmp_name);
result = dns_name_concatenate(tmp_name, result = dns_name_concatenate(tmp_name,
current_foundname, current_foundname,
new_foundname, new_foundname,
NULL); NULL);
if (result != DNS_R_SUCCESS) if (result != DNS_R_SUCCESS)
return (result); return (result);
} }
/* /*
* Whack off the common labels of the current * Whack off the current node's common labels
* node for the name to search in the next level. * for the name to search in the next level.
*/ */
dns_name_getlabelsequence(search_name, 0, dns_name_getlabelsequence(search_name, 0,
first_common_label, first_common_label,
@ -768,7 +768,7 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
if (DATA(current) != NULL) { if (DATA(current) != NULL) {
*node = current; *node = current;
foundname_labels = foundname_labels =
FAST_COUNTLABELS(new_foundname); FAST_COUNTLABELS(new_foundname);
} }
/* /*
@ -810,7 +810,6 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
&name1); &name1);
result = dns_name_concatenate(&name1, NULL, result = dns_name_concatenate(&name1, NULL,
foundname, NULL); foundname, NULL);
printf("HEY!\n");
} else } else
result = dns_name_concatenate(new_foundname, result = dns_name_concatenate(new_foundname,
NULL, NULL,
@ -836,7 +835,6 @@ dns_rbt_findname(dns_rbt_t *rbt, dns_name_t *name,
dns_rbtnode_t *node = NULL; dns_rbtnode_t *node = NULL;
dns_result_t result; dns_result_t result;
REQUIRE(VALID_RBT(rbt));
REQUIRE(data != NULL && *data == NULL); REQUIRE(data != NULL && *data == NULL);
result = dns_rbt_findnode(rbt, name, foundname, &node, NULL); result = dns_rbt_findnode(rbt, name, foundname, &node, NULL);