From 13f1cd8893fad76359c0f1b5232827ad095d1987 Mon Sep 17 00:00:00 2001 From: John Levon Date: Mon, 4 Jan 2021 16:22:48 +0000 Subject: pass vfu_ctx_t to callbacks (#222) It's easy (with the new vfu_get_private()) to go from a vfu_ctx to the private pointer, but not the reverse; pass the ctx into all the callbacks. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- samples/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/client.c') diff --git a/samples/client.c b/samples/client.c index e59f66d..7568afe 100644 --- a/samples/client.c +++ b/samples/client.c @@ -1127,7 +1127,7 @@ int main(int argc, char *argv[]) * Normally the client would now send the device state to the destination * client and then exit. We don't demonstrate how this works as this is a * client implementation detail. Instead, the client starts the destination - * server and then applies the mgiration data. + * server and then applies the migration data. */ if (asprintf(&path_to_server, "%s/server", dirname(argv[0])) == -1) { err(EXIT_FAILURE, "failed to asprintf"); -- cgit v1.1