diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-24 17:10:12 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:51 +0200 |
commit | 5f9a6a08e8f65e01746d2485fc65a3a78e74865f (patch) | |
tree | 48101bce5087ce23d966590f75d9697f837e0b0a /tests | |
parent | 198c49cc8d81e8eb0df3749d395599895c3a3a76 (diff) | |
download | qemu-5f9a6a08e8f65e01746d2485fc65a3a78e74865f.zip |
job: Add job_dismiss()
This moves block_job_dismiss() to the Job layer.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-blockjob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-blockjob.c b/tests/test-blockjob.c index 46a78739aa..7131cabb16 100644 --- a/tests/test-blockjob.c +++ b/tests/test-blockjob.c @@ -233,8 +233,8 @@ static void cancel_common(CancelJob *s) job_cancel_sync(&job->job); if (sts != JOB_STATUS_CREATED && sts != JOB_STATUS_CONCLUDED) { - BlockJob *dummy = job; - block_job_dismiss(&dummy, &error_abort); + Job *dummy = &job->job; + job_dismiss(&dummy, &error_abort); } assert(job->job.status == JOB_STATUS_NULL); job_unref(&job->job); |