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

Submitted by Juan Quintela on Jan. 19, 2010, 11:56 p.m.

Details

Message ID df441c2d9a238d9676fd3004a2ab8060a2b78f5d.1263944807.git.quintela@redhat.com
State New
Headers show

Commit Message

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

Patch hide | download patch | download mbox

diff --git a/qemu-common.h b/qemu-common.h
index a8144cb..f009796 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -160,7 +160,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