diff options
| author | Fam Zheng | 2013-10-08 11:29:40 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2013-10-11 10:52:54 +0200 |
| commit | 79e14bf7782d861d3d773a67680de07a8f354f4e (patch) | |
| tree | 07922b6bb3b2b800babb90dd795ee241e9dc2a31 /block/commit.c | |
| parent | qapi: Introduce enum BlockJobType (diff) | |
| download | qemu-79e14bf7782d861d3d773a67680de07a8f354f4e.tar.gz qemu-79e14bf7782d861d3d773a67680de07a8f354f4e.tar.xz qemu-79e14bf7782d861d3d773a67680de07a8f354f4e.zip | |
qapi: make use of new BlockJobType
Switch the string to enum type BlockJobType in BlockJobDriver.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
| -rw-r--r-- | block/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/commit.c b/block/commit.c index 5146138c67..d4090cbf7d 100644 --- a/block/commit.c +++ b/block/commit.c @@ -175,7 +175,7 @@ static void commit_set_speed(BlockJob *job, int64_t speed, Error **errp) static const BlockJobDriver commit_job_driver = { .instance_size = sizeof(CommitBlockJob), - .job_type = "commit", + .job_type = BLOCK_JOB_TYPE_COMMIT, .set_speed = commit_set_speed, }; |
