Patchwork [02/17] force to test result for qemu_write_full()

login
register
mail settings
Submitter Juan Quintela
Date Jan. 20, 2010, 8:13 p.m.
Message ID <b28818da3576c4e5a92304fd80c49e95834267fd.1264017981.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/43344/
State New
Headers show

Comments

Juan Quintela - Jan. 20, 2010, 8:13 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 qemu-common.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/qemu-common.h b/qemu-common.h
index a2731e1..ae4f23b 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -161,7 +161,8 @@  void qemu_mutex_lock_iothread(void);
 void qemu_mutex_unlock_iothread(void);

 int qemu_open(const char *name, int flags, ...);
-ssize_t qemu_write_full(int fd, const void *buf, size_t count);
+ssize_t qemu_write_full(int fd, const void *buf, size_t count)
+    QEMU_WARN_UNUSED_RESULT;
 void qemu_set_cloexec(int fd);

 #ifndef _WIN32