aboutsummaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2009-12-25 18:19:19 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-12-25 18:19:19 +0000
commit5fdb3aa16ab7628c4c3ffcbfb6861b2ad7643a6b (patch)
tree213179d5b1b4643fb8acea43af7cbc54d571f709 /savevm.c
parentf0d98b0517097509e1ebe2ac333f1ed70e7ea4f1 (diff)
savevm.c: fix warning with _FORTIFY_SOURCE
CC savevm.o cc1: warnings being treated as errors savevm.c: In function 'file_put_buffer': savevm.c:342: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result make: *** [savevm.o] Error 1 Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/savevm.c b/savevm.c
index aefe052cd3..829f735bd4 100644
--- a/savevm.c
+++ b/savevm.c
@@ -339,8 +339,7 @@ static int file_put_buffer(void *opaque, const uint8_t *buf,
{
QEMUFileStdio *s = opaque;
fseek(s->stdio_file, pos, SEEK_SET);
- fwrite(buf, 1, size, s->stdio_file);
- return size;
+ return fwrite(buf, 1, size, s->stdio_file);
}
static int file_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size)