Commit 342b51d74f78b3c51a9218163c4b1d8b41fdc2f8
1 parent
b61680ce
Fix warning about incompatible types
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5373 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
4 deletions
vl.c
@@ -6226,8 +6226,8 @@ static void fd_put_notify(void *opaque) | @@ -6226,8 +6226,8 @@ static void fd_put_notify(void *opaque) | ||
6226 | qemu_file_put_notify(s->file); | 6226 | qemu_file_put_notify(s->file); |
6227 | } | 6227 | } |
6228 | 6228 | ||
6229 | -static int fd_put_buffer(void *opaque, const uint8_t *buf, | ||
6230 | - int64_t pos, int size) | 6229 | +static void fd_put_buffer(void *opaque, const uint8_t *buf, |
6230 | + int64_t pos, int size) | ||
6231 | { | 6231 | { |
6232 | QEMUFileFD *s = opaque; | 6232 | QEMUFileFD *s = opaque; |
6233 | ssize_t len; | 6233 | ssize_t len; |
@@ -6243,8 +6243,6 @@ static int fd_put_buffer(void *opaque, const uint8_t *buf, | @@ -6243,8 +6243,6 @@ static int fd_put_buffer(void *opaque, const uint8_t *buf, | ||
6243 | * a put notify */ | 6243 | * a put notify */ |
6244 | if (len == -EAGAIN) | 6244 | if (len == -EAGAIN) |
6245 | qemu_set_fd_handler2(s->fd, NULL, NULL, fd_put_notify, s); | 6245 | qemu_set_fd_handler2(s->fd, NULL, NULL, fd_put_notify, s); |
6246 | - | ||
6247 | - return len; | ||
6248 | } | 6246 | } |
6249 | 6247 | ||
6250 | static int fd_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size) | 6248 | static int fd_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size) |