mirror of https://github.com/xqemu/xqemu.git
qemu-img: fix switch indentation in img_amend()
QEMU coding style indents 'case' to the same level as the 'switch' statement: switch (foo) { case 1: Fix this coding style violation so checkpatch.pl doesn't complain about the next patch. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20170317104541.28979-3-stefanha@redhat.com Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
4581c16fce
commit
f7077624b0
82
qemu-img.c
82
qemu-img.c
|
@ -3500,47 +3500,47 @@ static int img_amend(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'h':
|
case 'h':
|
||||||
case '?':
|
case '?':
|
||||||
help();
|
help();
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
if (!is_valid_option_list(optarg)) {
|
if (!is_valid_option_list(optarg)) {
|
||||||
error_report("Invalid option list: %s", optarg);
|
error_report("Invalid option list: %s", optarg);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto out_no_progress;
|
goto out_no_progress;
|
||||||
}
|
}
|
||||||
if (!options) {
|
if (!options) {
|
||||||
options = g_strdup(optarg);
|
options = g_strdup(optarg);
|
||||||
} else {
|
} else {
|
||||||
char *old_options = options;
|
char *old_options = options;
|
||||||
options = g_strdup_printf("%s,%s", options, optarg);
|
options = g_strdup_printf("%s,%s", options, optarg);
|
||||||
g_free(old_options);
|
g_free(old_options);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
fmt = optarg;
|
fmt = optarg;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
cache = optarg;
|
cache = optarg;
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
progress = true;
|
progress = true;
|
||||||
break;
|
break;
|
||||||
case 'q':
|
case 'q':
|
||||||
quiet = true;
|
quiet = true;
|
||||||
break;
|
break;
|
||||||
case OPTION_OBJECT:
|
case OPTION_OBJECT:
|
||||||
opts = qemu_opts_parse_noisily(&qemu_object_opts,
|
opts = qemu_opts_parse_noisily(&qemu_object_opts,
|
||||||
optarg, true);
|
optarg, true);
|
||||||
if (!opts) {
|
if (!opts) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto out_no_progress;
|
goto out_no_progress;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OPTION_IMAGE_OPTS:
|
case OPTION_IMAGE_OPTS:
|
||||||
image_opts = true;
|
image_opts = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue