]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - tests/test-blockjob-txn.c
coroutine: move entry argument to qemu_coroutine_create
[thirdparty/qemu.git] / tests / test-blockjob-txn.c
index 50e232a709b3168f132c7a34668e3f317af175d4..d049cba8a307b89ad3d306f390e3d04c7dec1bf8 100644 (file)
@@ -103,10 +103,10 @@ static BlockJob *test_block_job_start(unsigned int iterations,
     s->use_timer = use_timer;
     s->rc = rc;
     s->result = result;
-    s->common.co = qemu_coroutine_create(test_block_job_run);
+    s->common.co = qemu_coroutine_create(test_block_job_run, s);
     data->job = s;
     data->result = result;
-    qemu_coroutine_enter(s->common.co, s);
+    qemu_coroutine_enter(s->common.co);
     return &s->common;
 }