From: John Ferlan Date: Tue, 25 Mar 2014 16:57:58 +0000 (-0400) Subject: Coverity: Resolve a CHECKED_RETURN message X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b2e4ace220f86a74fb788c0c9f0f37ec238eabf8;p=libvirt.git Coverity: Resolve a CHECKED_RETURN message Recent changes to the module seemed to have caused Coverity to find a new issue regarding the failure to check the return from a sendmsg. The code doesn't seem to care about the return status, so just added an ignore_value to keep Coverity quiet. --- diff --git a/src/util/virlog.c b/src/util/virlog.c index d0afd10933..056950e5b0 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -1003,7 +1003,7 @@ virLogOutputToJournald(virLogSourcePtr source, mh.msg_controllen = cmsg->cmsg_len; - sendmsg(journalfd, &mh, MSG_NOSIGNAL); + ignore_value(sendmsg(journalfd, &mh, MSG_NOSIGNAL)); cleanup: VIR_LOG_CLOSE(buffd);