diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-09-19 13:50:54 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-22 11:53:58 +0100 |
commit | 94607e7a775ae7b57219e2078b00ed2930ab98de (patch) | |
tree | a82dc89b82bda6d6a9b4a5209ef5ade16c9ab568 /qemu-nbd.c | |
parent | 3e05c785516efa6911504b1ddf936d2386c2e0b6 (diff) | |
download | hqemu-94607e7a775ae7b57219e2078b00ed2930ab98de.zip hqemu-94607e7a775ae7b57219e2078b00ed2930ab98de.tar.gz |
qemu-nbd: remove offset argument to nbd_trip
The argument is write-only.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r-- | qemu-nbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -248,7 +248,6 @@ int main(int argc, char **argv) { BlockDriverState *bs; off_t dev_offset = 0; - off_t offset = 0; uint32_t nbdflags = 0; bool disconnect = false; const char *bindto = "0.0.0.0"; @@ -542,7 +541,7 @@ int main(int argc, char **argv) for (i = 1; i < nb_fds && ret; i++) { if (FD_ISSET(sharing_fds[i], &fds)) { if (nbd_trip(bs, sharing_fds[i], fd_size, dev_offset, - &offset, nbdflags, data, NBD_BUFFER_SIZE) != 0) { + nbdflags, data, NBD_BUFFER_SIZE) != 0) { close(sharing_fds[i]); nb_fds--; sharing_fds[i] = sharing_fds[nb_fds]; |