2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Check return values or cast them to (void), as required by the coding

standards; add exceptions to the coding standards for cases where this is
not desirable
This commit is contained in:
Andreas Gustafsson
2001-11-30 01:59:49 +00:00
parent 9ac8796f16
commit 1f1d36a87b
61 changed files with 420 additions and 409 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbt.c,v 1.119 2001/11/27 00:55:56 gson Exp $ */
/* $Id: rbt.c,v 1.120 2001/11/30 01:59:15 gson Exp $ */
/* Principal Authors: DCL */
@@ -2167,10 +2167,9 @@ dns_rbt_indent(int depth) {
static void
dns_rbt_printnodename(dns_rbtnode_t *node) {
isc_buffer_t target;
isc_region_t r;
dns_name_t name;
char buffer[1024];
char buffer[DNS_NAME_FORMATSIZE];
dns_offsets_t offsets;
r.length = NAMELEN(node);
@@ -2179,14 +2178,9 @@ dns_rbt_printnodename(dns_rbtnode_t *node) {
dns_name_init(&name, offsets);
dns_name_fromregion(&name, &r);
isc_buffer_init(&target, buffer, 255);
dns_name_format(&name, buffer, sizeof(buffer));
/*
* ISC_FALSE means absolute names have the final dot added.
*/
dns_name_totext(&name, ISC_FALSE, &target);
printf("%.*s", (int)target.used, (char *)target.base);
printf("%s", buffer);
}
static void