aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-02-11 20:39:34 +0000
committerGitHub <noreply@github.com>2021-02-11 20:39:34 +0000
commit0cfb9449dc1469cb8b12369afc2c5881d6b544fd (patch)
treed9ec0f63da620e6c342a959027a083c98ace0e54 /test
parentce35c1da0add92c690ea6ab77e1ef3d7cbba28f5 (diff)
downloadlibvfio-user-0cfb9449dc1469cb8b12369afc2c5881d6b544fd.zip
libvfio-user-0cfb9449dc1469cb8b12369afc2c5881d6b544fd.tar.gz
libvfio-user-0cfb9449dc1469cb8b12369afc2c5881d6b544fd.tar.bz2
tiny rename of vfu_ctx_t::trans -> tran (#315)
This matches the tran_* namespace better. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r--test/unit-tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index 7ec1469..dde4315 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -347,8 +347,8 @@ test_process_command_free_passed_fds(void **state __attribute__((unused)))
vfu_ctx_t vfu_ctx = {
.conn_fd = 0xcafebabe,
.client_max_fds = ARRAY_SIZE(fds),
- .migration = (struct migration*)0x8badf00d,
- .trans = &tran_sock_ops,
+ .migration = (struct migration *)0x8badf00d,
+ .tran = &tran_sock_ops,
};
patch(device_is_stopped);
@@ -434,7 +434,7 @@ test_attach_ctx(void **state __attribute__((unused)))
.attach = &dummy_attach,
};
vfu_ctx_t vfu_ctx = {
- .trans = &transport_ops,
+ .tran = &transport_ops,
};
assert_int_equal(222, vfu_attach_ctx(&vfu_ctx));