diff --git a/nbd.c b/nbd.c index 9bebe4a9bb573651948bd8449f9913b42e23bc9d..ee5427cab42b92275ec53d380414e56cf2f03ec2 100644 --- a/nbd.c +++ b/nbd.c @@ -264,7 +264,7 @@ error: Request (type == 2) */ -int nbd_negotiate(BlockDriverState *bs, int csock, off_t size) +int nbd_negotiate(int csock, off_t size) { char buf[8 + 8 + 8 + 128]; diff --git a/nbd.h b/nbd.h index 55ba1ba01e63311957d63d4e7d1a495bc7a85051..ede1e746cb3b91cdb04bf7b148bfb8e4f42f7b56 100644 --- a/nbd.h +++ b/nbd.h @@ -50,7 +50,7 @@ int tcp_socket_incoming(const char *address, uint16_t port); int unix_socket_outgoing(const char *path); int unix_socket_incoming(const char *path); -int nbd_negotiate(BlockDriverState *bs, int csock, off_t size); +int nbd_negotiate(int csock, off_t size); int nbd_receive_negotiate(int csock, off_t *size, size_t *blocksize); int nbd_init(int fd, int csock, off_t size, size_t blocksize); int nbd_send_request(int csock, struct nbd_request *request); diff --git a/qemu-nbd.c b/qemu-nbd.c index 916150e424e67a4290651db99412f4ff78992803..d5d5db73a0e72c411f01248ee76ca5206424bd8a 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -458,7 +458,7 @@ int main(int argc, char **argv) (struct sockaddr *)&addr, &addr_len); if (sharing_fds[nb_fds] != -1 && - nbd_negotiate(bs, sharing_fds[nb_fds], fd_size) != -1) { + nbd_negotiate(sharing_fds[nb_fds], fd_size) != -1) { if (sharing_fds[nb_fds] > max_fd) max_fd = sharing_fds[nb_fds]; nb_fds++;