提交 0a4eb864 编写于 作者: J Jes Sorensen 提交者: Blue Swirl

Remove unused argument for nbd_client()

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 cb93bbdd
......@@ -393,7 +393,7 @@ int nbd_disconnect(int fd)
return 0;
}
int nbd_client(int fd, int csock)
int nbd_client(int fd)
{
int ret;
int serrno;
......@@ -427,7 +427,7 @@ int nbd_disconnect(int fd)
return -1;
}
int nbd_client(int fd, int csock)
int nbd_client(int fd)
{
errno = ENOTSUP;
return -1;
......
......@@ -55,7 +55,7 @@ int nbd_send_request(int csock, struct nbd_request *request);
int nbd_receive_reply(int csock, struct nbd_reply *reply);
int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset,
off_t *offset, bool readonly, uint8_t *data, int data_size);
int nbd_client(int fd, int csock);
int nbd_client(int fd);
int nbd_disconnect(int fd);
#endif
......@@ -417,7 +417,7 @@ int main(int argc, char **argv)
show_parts(device);
nbd_client(fd, sock);
nbd_client(fd);
close(fd);
out:
kill(pid, SIGTERM);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册