Commit 8db70f36 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

isc_buffer_putstr() will soon return void

parent 6b526894
...@@ -1211,8 +1211,7 @@ validator_logv(dns_validator_t *val, isc_logcategory_t *category, ...@@ -1211,8 +1211,7 @@ validator_logv(dns_validator_t *val, isc_logcategory_t *category,
!= ISC_R_SUCCESS) != ISC_R_SUCCESS)
{ {
isc_buffer_clear(&b); isc_buffer_clear(&b);
RUNTIME_CHECK(isc_buffer_putstr(&b, "<bad type>") isc_buffer_putstr(&b, "<bad type>");
== ISC_R_SUCCESS);
} }
isc_buffer_used(&b, &r); isc_buffer_used(&b, &r);
isc_log_write(dns_lctx, category, module, level, isc_log_write(dns_lctx, category, module, level,
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* SOFTWARE. * 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> #include <config.h>
...@@ -3247,8 +3247,8 @@ zone_log(dns_zone_t *zone, const char *me, int level, ...@@ -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); isc_buffer_init(&buffer, namebuf, sizeof namebuf, ISC_BUFFERTYPE_TEXT);
result = dns_name_totext(&zone->origin, ISC_FALSE, &buffer); result = dns_name_totext(&zone->origin, ISC_FALSE, &buffer);
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS)
(void)isc_buffer_putstr(&buffer, "<UNKNOWN>"); isc_buffer_putstr(&buffer, "<UNKNOWN>");
(void)isc_buffer_putstr(&buffer, "/"); isc_buffer_putstr(&buffer, "/");
(void)dns_rdataclass_totext(zone->rdclass, &buffer); (void)dns_rdataclass_totext(zone->rdclass, &buffer);
len = buffer.used; /* XXX */ len = buffer.used; /* XXX */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment