[v9_10] silence coverity
(cherry picked from commit e7bc3d7d0815f795aef734ff6fe38cbf6d1ae4bf)
This commit is contained in:
+4
-6
@@ -15,8 +15,6 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
#include <config.h>
|
||||
@@ -9023,10 +9021,10 @@ inuse(const char* file, isc_boolean_t first, isc_buffer_t *text) {
|
||||
strlen(file) + (first ? sizeof(INUSEMSG) : sizeof("\n")))
|
||||
{
|
||||
if (first)
|
||||
putstr(text, INUSEMSG);
|
||||
(void) putstr(text, INUSEMSG);
|
||||
else
|
||||
putstr(text, "\n");
|
||||
putstr(text, file);
|
||||
(void) putstr(text, "\n");
|
||||
(void) putstr(text, file);
|
||||
return (ISC_FALSE);
|
||||
}
|
||||
return (first);
|
||||
@@ -9771,7 +9769,7 @@ ns_server_zonestatus(ns_server_t *server, char *args, isc_buffer_t *text) {
|
||||
cleanup:
|
||||
/* Indicate truncated output if possible. */
|
||||
if (result == ISC_R_NOSPACE)
|
||||
putstr(text, "\n...");
|
||||
(void) putstr(text, "\n...");
|
||||
if ((result == ISC_R_SUCCESS || result == ISC_R_NOSPACE))
|
||||
putnull(text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user