From 8763e9211cd32406c9404b3426ee1a586987ffe3 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 13 Jan 2023 23:44:33 +0300 Subject: [PATCH] Fix qemu driver compilation warning/error --- src/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu_driver.c b/src/qemu_driver.c index a0c5bc58..64556711 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -259,7 +259,7 @@ static int vitastor_file_open(BlockDriverState *bs, QDict *options, int flags, E client->readonly = (flags & BDRV_O_RDWR) ? 1 : 0; // Get image metadata (size and readonly flag) or just wait until the client is ready if (!image) - client->image = "x"; + client->image = (char*)"x"; task.complete = 0; task.bs = bs; if (qemu_in_coroutine())