diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-03-27 17:36:27 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-17 11:43:44 +0200 |
commit | 15711565f66de53c22c3a9faee04fc2092409ce4 (patch) | |
tree | 667f267e7fdaca6b7bbb7e189b2f4d201b30e92a /savevm.c | |
parent | e0a83fc2c1582dc8d4453849852ebe6c258b7c3a (diff) | |
download | qemu-15711565f66de53c22c3a9faee04fc2092409ce4.zip qemu-15711565f66de53c22c3a9faee04fc2092409ce4.tar.gz qemu-15711565f66de53c22c3a9faee04fc2092409ce4.tar.bz2 |
qemu-file: drop socket_put_buffer
It is enough to implement one of socket_writev_buffer and
socket_put_buffer.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Orit Wassermann <owasserm@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -219,18 +219,6 @@ static int socket_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size) return len; } -static int socket_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, int size) -{ - QEMUFileSocket *s = opaque; - ssize_t len; - - len = qemu_send_full(s->fd, buf, size, 0); - if (len < size) { - len = -socket_error(); - } - return len; -} - static int socket_close(void *opaque) { QEMUFileSocket *s = opaque; @@ -404,7 +392,6 @@ static const QEMUFileOps socket_read_ops = { static const QEMUFileOps socket_write_ops = { .get_fd = socket_get_fd, - .put_buffer = socket_put_buffer, .writev_buffer = socket_writev_buffer, .close = socket_close }; |