isc_buffer_putstr() will soon return void

This commit is contained in:
Andreas Gustafsson
2000-04-26 18:24:15 +00:00
parent 6b526894f4
commit 8db70f36be
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -1211,8 +1211,7 @@ validator_logv(dns_validator_t *val, isc_logcategory_t *category,
!= ISC_R_SUCCESS)
{
isc_buffer_clear(&b);
RUNTIME_CHECK(isc_buffer_putstr(&b, "<bad type>")
== ISC_R_SUCCESS);
isc_buffer_putstr(&b, "<bad type>");
}
isc_buffer_used(&b, &r);
isc_log_write(dns_lctx, category, module, level,
+3 -3
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.100 2000/04/24 23:30:46 tale Exp $ */
/* $Id: zone.c,v 1.101 2000/04/26 18:24:15 gson Exp $ */
#include <config.h>
@@ -3247,8 +3247,8 @@ zone_log(dns_zone_t *zone, const char *me, int level,
isc_buffer_init(&buffer, namebuf, sizeof namebuf, ISC_BUFFERTYPE_TEXT);
result = dns_name_totext(&zone->origin, ISC_FALSE, &buffer);
if (result != ISC_R_SUCCESS)
(void)isc_buffer_putstr(&buffer, "<UNKNOWN>");
(void)isc_buffer_putstr(&buffer, "/");
isc_buffer_putstr(&buffer, "<UNKNOWN>");
isc_buffer_putstr(&buffer, "/");
(void)dns_rdataclass_totext(zone->rdclass, &buffer);
len = buffer.used; /* XXX */