aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorswapnili <swapnil.ingle@nutanix.com>2020-12-17 13:27:40 +0100
committerGitHub <noreply@github.com>2020-12-17 13:27:40 +0100
commitff260aa40b9b6f44e923d8efd209cc26a39aad33 (patch)
tree74a2e9a4f43c987948bd74d068b7e614ad22f96a /samples
parent595dff99e5e666d6f0febb93c3c200c7db41b0dc (diff)
downloadlibvfio-user-ff260aa40b9b6f44e923d8efd209cc26a39aad33.zip
libvfio-user-ff260aa40b9b6f44e923d8efd209cc26a39aad33.tar.gz
libvfio-user-ff260aa40b9b6f44e923d8efd209cc26a39aad33.tar.bz2
Fix passing of recv_data (#214)
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/client.c b/samples/client.c
index 3baaa18..e59f66d 100644
--- a/samples/client.c
+++ b/samples/client.c
@@ -461,7 +461,7 @@ access_region(int sock, int region, bool is_write, uint64_t offset,
ret = vfu_msg_iovec(sock, 0, op,
send_iovecs, nr_send_iovecs,
NULL, 0, NULL,
- &recv_data, recv_data_len, NULL, 0);
+ recv_data, recv_data_len, NULL, 0);
if (ret != 0) {
warnx("failed to %s region %d %#lx-%#lx: %s",
is_write ? "write to" : "read from", region, offset,