diff options
author | Peter Crosthwaite | 2014-01-02 03:49:17 +0100 |
---|---|---|
committer | Luiz Capitulino | 2014-01-06 21:02:30 +0100 |
commit | 87ea75d5e135c0527c6a9dbac4317913409f28c7 (patch) | |
tree | ad01b184d1a7e79e87139bd73da3b1e84dadf990 /qemu-img.c | |
parent | target-i386: Remove assert_no_error usage (diff) | |
download | qemu-87ea75d5e135c0527c6a9dbac4317913409f28c7.tar.gz qemu-87ea75d5e135c0527c6a9dbac4317913409f28c7.tar.xz qemu-87ea75d5e135c0527c6a9dbac4317913409f28c7.zip |
qemu-option: Remove qemu_opts_create_nofail
This is a boiler-plate _nofail variant of qemu_opts_create. Remove and
use error_abort in call sites.
null/0 arguments needs to be added for the id and fail_if_exists fields
in affected callsites due to argument inconsistency between the normal and
no_fail variants.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c index a4b3931174..c989850ce7 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -2564,7 +2564,7 @@ static int img_resize(int argc, char **argv) } /* Parse size */ - param = qemu_opts_create_nofail(&resize_options); + param = qemu_opts_create(&resize_options, NULL, 0, &error_abort); if (qemu_opt_set(param, BLOCK_OPT_SIZE, size)) { /* Error message already printed when size parsing fails */ ret = -1; |