aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-17 08:20:33 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2015-12-17 17:33:49 +0100
commit1e819697c909db7e534678ef8e41b8fac90b41f5 (patch)
tree49e16e601a77ad54adea7b3c22941ef6f0ee12ab
parent36896bffd1330e09ee615f8c19d9e07520320a02 (diff)
downloadqemu-1e819697c909db7e534678ef8e41b8fac90b41f5.zip
qemu-1e819697c909db7e534678ef8e41b8fac90b41f5.tar.gz
qemu-1e819697c909db7e534678ef8e41b8fac90b41f5.tar.bz2
coverity: Model g_poll()
In my testing, Coverity reported two more CHECKED_RETURN: * qemu-char.c:1248: fixed in commit c1f2448: "qemu-char: retry g_poll on EINTR". * migration/qemu-file-unix.c:75: harmless, cleaned up in commit 4e39f57 "migration: Clean up use of g_poll() in socket_writev_buffer() Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1450336833-27710-1-git-send-email-armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--scripts/coverity-model.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c
index 617f67d..bde7411 100644
--- a/scripts/coverity-model.c
+++ b/scripts/coverity-model.c
@@ -325,6 +325,15 @@ char *g_strconcat(const char *s, ...)
/* Other glib functions */
+typedef struct pollfd GPollFD;
+
+int poll();
+
+int g_poll (GPollFD *fds, unsigned nfds, int timeout)
+{
+ return poll(fds, nfds, timeout);
+}
+
typedef struct _GIOChannel GIOChannel;
GIOChannel *g_io_channel_unix_new(int fd)
{