2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

[master] silence coverity

This commit is contained in:
Evan Hunt
2014-08-22 18:19:09 -07:00
parent cefd74ae81
commit 06f329afe1

View File

@@ -15,8 +15,6 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id$ */
/*! \file */ /*! \file */
#include <config.h> #include <config.h>
@@ -9071,10 +9069,10 @@ inuse(const char* file, isc_boolean_t first, isc_buffer_t *text) {
strlen(file) + (first ? sizeof(INUSEMSG) : sizeof("\n"))) strlen(file) + (first ? sizeof(INUSEMSG) : sizeof("\n")))
{ {
if (first) if (first)
putstr(text, INUSEMSG); (void) putstr(text, INUSEMSG);
else else
putstr(text, "\n"); (void) putstr(text, "\n");
putstr(text, file); (void) putstr(text, file);
return (ISC_FALSE); return (ISC_FALSE);
} }
return (first); return (first);
@@ -9819,7 +9817,7 @@ ns_server_zonestatus(ns_server_t *server, char *args, isc_buffer_t *text) {
cleanup: cleanup:
/* Indicate truncated output if possible. */ /* Indicate truncated output if possible. */
if (result == ISC_R_NOSPACE) if (result == ISC_R_NOSPACE)
putstr(text, "\n..."); (void) putstr(text, "\n...");
if ((result == ISC_R_SUCCESS || result == ISC_R_NOSPACE)) if ((result == ISC_R_SUCCESS || result == ISC_R_NOSPACE))
putnull(text); putnull(text);
@@ -10041,8 +10039,8 @@ ns_server_nta(ns_server_t *server, char *args, isc_buffer_t *text) {
} }
isc_task_endexclusive(server->task); isc_task_endexclusive(server->task);
if (msg != NULL && strlen(msg) < isc_buffer_availablelength(text)) if (msg != NULL)
isc_buffer_putstr(text, msg); (void) putstr(text, msg);
cleanup: cleanup:
if (ntatable != NULL) if (ntatable != NULL)
dns_ntatable_detach(&ntatable); dns_ntatable_detach(&ntatable);