]> xenbits.xensource.com Git - libvirt.git/commitdiff
Coverity: Resolve a CHECKED_RETURN message
authorJohn Ferlan <jferlan@redhat.com>
Tue, 25 Mar 2014 16:57:58 +0000 (12:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 25 Mar 2014 21:13:27 +0000 (17:13 -0400)
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.

src/util/virlog.c

index d0afd1093347a0478b877333c54a390327548728..056950e5b0d79d5b3e58bbfcbdcf1da2074be1f9 100644 (file)
@@ -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);