aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-01-20 00:56:09 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-26 14:59:19 -0600
commit7c7c0629a3391691e76cb2b488bb6d461edc9648 (patch)
tree86dd26244b8f2432799c17247f7a5cd7df8f0a3a
parent7b5f699dbdf64cf9657e2955bccccc173d9b09fc (diff)
downloadqemu-7c7c0629a3391691e76cb2b488bb6d461edc9648.zip
qemu-7c7c0629a3391691e76cb2b488bb6d461edc9648.tar.gz
qemu-7c7c0629a3391691e76cb2b488bb6d461edc9648.tar.bz2
force to test result for qemu_write_full()
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--qemu-common.h3
1 files changed, 2 insertions, 1 deletions
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