aboutsummaryrefslogtreecommitdiff
path: root/samples/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/client.c')
-rw-r--r--samples/client.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/samples/client.c b/samples/client.c
index 71bc4ac..dd73dbd 100644
--- a/samples/client.c
+++ b/samples/client.c
@@ -144,13 +144,10 @@ recv_version(int sock, int *server_max_fds, size_t *pgsize)
err(EXIT_FAILURE, "failed to receive version");
}
-// FIXME: are we out of spec? reply cmd's are zero
-#if 0
if (hdr.cmd != VFIO_USER_VERSION) {
- errx(EXIT_FAILURE, "msg%hx: invalid cmd %hu (expected %hu)",
- msg_id, hdr.cmd, VFIO_USER_VERSION);
+ errx(EXIT_FAILURE, "msg%hx: invalid cmd %hu (expected %u)",
+ hdr.msg_id, hdr.cmd, VFIO_USER_VERSION);
}
-#endif
if (vlen < sizeof(*sversion)) {
errx(EXIT_FAILURE, "VFIO_USER_VERSION: invalid size %lu", vlen);