From: blueswir1 Date: Wed, 1 Oct 2008 18:02:50 +0000 (+0000) Subject: Fix warning about incompatible types X-Git-Tag: stefano.display-merge-start~416 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=342b51d74f78b3c51a9218163c4b1d8b41fdc2f8;p=qemu-xen-3.4-testing.git Fix warning about incompatible types git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5373 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/vl.c b/vl.c index 83437640..e71faf32 100644 --- a/vl.c +++ b/vl.c @@ -6226,8 +6226,8 @@ static void fd_put_notify(void *opaque) qemu_file_put_notify(s->file); } -static int fd_put_buffer(void *opaque, const uint8_t *buf, - int64_t pos, int size) +static void fd_put_buffer(void *opaque, const uint8_t *buf, + int64_t pos, int size) { QEMUFileFD *s = opaque; ssize_t len; @@ -6243,8 +6243,6 @@ static int fd_put_buffer(void *opaque, const uint8_t *buf, * a put notify */ if (len == -EAGAIN) qemu_set_fd_handler2(s->fd, NULL, NULL, fd_put_notify, s); - - return len; } static int fd_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size)