mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
coverity: Model g_poll()
In my testing, Coverity reported two more CHECKED_RETURN: * qemu-char.c:1248: fixed in commitc1f2448
: "qemu-char: retry g_poll on EINTR". * migration/qemu-file-unix.c:75: harmless, cleaned up in commit4e39f57
"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>
This commit is contained in:
parent
36896bffd1
commit
1e819697c9
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue