aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2017-08-04 18:14:28 +0300
committerEric Blake <eblake@redhat.com>2017-08-30 13:00:38 -0500
commit6faa077772db366e5d2198ec0a14a50d0ccde1c6 (patch)
treedf7cdb01d8036dcb6668ecdbe3a424bf053ecf41 /block
parent490dc5ed9bfbaf50ed8186c9729a81f530a11188 (diff)
downloadqemu-6faa077772db366e5d2198ec0a14a50d0ccde1c6.zip
qemu-6faa077772db366e5d2198ec0a14a50d0ccde1c6.tar.gz
qemu-6faa077772db366e5d2198ec0a14a50d0ccde1c6.tar.bz2
block/nbd-client: get rid of ssize_t
Use int variable for nbd_co_send_request return value (as nbd_co_send_request returns int). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20170804151440.320927-6-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/nbd-client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/block/nbd-client.c b/block/nbd-client.c
index ea728ff..1e393cf 100644
--- a/block/nbd-client.c
+++ b/block/nbd-client.c
@@ -230,7 +230,7 @@ int nbd_client_co_preadv(BlockDriverState *bs, uint64_t offset,
.len = bytes,
};
NBDReply reply;
- ssize_t ret;
+ int ret;
assert(bytes <= NBD_MAX_BUFFER_SIZE);
assert(!flags);
@@ -254,7 +254,7 @@ int nbd_client_co_pwritev(BlockDriverState *bs, uint64_t offset,
.len = bytes,
};
NBDReply reply;
- ssize_t ret;
+ int ret;
if (flags & BDRV_REQ_FUA) {
assert(client->info.flags & NBD_FLAG_SEND_FUA);
@@ -275,7 +275,7 @@ int nbd_client_co_pwritev(BlockDriverState *bs, uint64_t offset,
int nbd_client_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset,
int bytes, BdrvRequestFlags flags)
{
- ssize_t ret;
+ int ret;
NBDClientSession *client = nbd_get_client_session(bs);
NBDRequest request = {
.type = NBD_CMD_WRITE_ZEROES,
@@ -310,7 +310,7 @@ int nbd_client_co_flush(BlockDriverState *bs)
NBDClientSession *client = nbd_get_client_session(bs);
NBDRequest request = { .type = NBD_CMD_FLUSH };
NBDReply reply;
- ssize_t ret;
+ int ret;
if (!(client->info.flags & NBD_FLAG_SEND_FLUSH)) {
return 0;
@@ -337,7 +337,7 @@ int nbd_client_co_pdiscard(BlockDriverState *bs, int64_t offset, int bytes)
.len = bytes,
};
NBDReply reply;
- ssize_t ret;
+ int ret;
if (!(client->info.flags & NBD_FLAG_SEND_TRIM)) {
return 0;