mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
nbd/client: fix nbd_send_request to return int
Fix nbd_send_request to return int, as it returns a return value of nbd_write (which is int), and the only user of nbd_send_request's return value (nbd_co_send_request) consider it as int too. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20170804151440.320927-5-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
committed by
Eric Blake
parent
ba8456442b
commit
490dc5ed9b
@@ -896,7 +896,7 @@ int nbd_disconnect(int fd)
|
||||
}
|
||||
#endif
|
||||
|
||||
ssize_t nbd_send_request(QIOChannel *ioc, NBDRequest *request)
|
||||
int nbd_send_request(QIOChannel *ioc, NBDRequest *request)
|
||||
{
|
||||
uint8_t buf[NBD_REQUEST_SIZE];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user