[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/6] qemu-img: fix switch indentation in img_amend()
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PULL 2/6] qemu-img: fix switch indentation in img_amend() |
Date: |
Mon, 27 Mar 2017 17:52:30 +0200 |
From: Stefan Hajnoczi <address@hidden>
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 <address@hidden>
Message-id: address@hidden
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
---
qemu-img.c | 82 +++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 41 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index ce293a4710..c7ffabb268 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -3500,47 +3500,47 @@ static int img_amend(int argc, char **argv)
}
switch (c) {
- case 'h':
- case '?':
- help();
- break;
- case 'o':
- if (!is_valid_option_list(optarg)) {
- error_report("Invalid option list: %s", optarg);
- ret = -1;
- goto out_no_progress;
- }
- if (!options) {
- options = g_strdup(optarg);
- } else {
- char *old_options = options;
- options = g_strdup_printf("%s,%s", options, optarg);
- g_free(old_options);
- }
- break;
- case 'f':
- fmt = optarg;
- break;
- case 't':
- cache = optarg;
- break;
- case 'p':
- progress = true;
- break;
- case 'q':
- quiet = true;
- break;
- case OPTION_OBJECT:
- opts = qemu_opts_parse_noisily(&qemu_object_opts,
- optarg, true);
- if (!opts) {
- ret = -1;
- goto out_no_progress;
- }
- break;
- case OPTION_IMAGE_OPTS:
- image_opts = true;
- break;
+ case 'h':
+ case '?':
+ help();
+ break;
+ case 'o':
+ if (!is_valid_option_list(optarg)) {
+ error_report("Invalid option list: %s", optarg);
+ ret = -1;
+ goto out_no_progress;
+ }
+ if (!options) {
+ options = g_strdup(optarg);
+ } else {
+ char *old_options = options;
+ options = g_strdup_printf("%s,%s", options, optarg);
+ g_free(old_options);
+ }
+ break;
+ case 'f':
+ fmt = optarg;
+ break;
+ case 't':
+ cache = optarg;
+ break;
+ case 'p':
+ progress = true;
+ break;
+ case 'q':
+ quiet = true;
+ break;
+ case OPTION_OBJECT:
+ opts = qemu_opts_parse_noisily(&qemu_object_opts,
+ optarg, true);
+ if (!opts) {
+ ret = -1;
+ goto out_no_progress;
+ }
+ break;
+ case OPTION_IMAGE_OPTS:
+ image_opts = true;
+ break;
}
}
--
2.12.1
- [Qemu-devel] [PULL 0/6] Block patches for rc2, Max Reitz, 2017/03/27
- [Qemu-devel] [PULL 1/6] qemu-img: show help for invalid global options, Max Reitz, 2017/03/27
- [Qemu-devel] [PULL 4/6] nbd-client: fix handling of hungup connections, Max Reitz, 2017/03/27
- [Qemu-devel] [PULL 2/6] qemu-img: fix switch indentation in img_amend(),
Max Reitz <=
- [Qemu-devel] [PULL 3/6] qemu-img: print short help on getopt failure, Max Reitz, 2017/03/27
- [Qemu-devel] [PULL 6/6] block/file-posix.c: Fix unused variable warning on OpenBSD, Max Reitz, 2017/03/27
- [Qemu-devel] [PULL 5/6] file-posix: Make bdrv_flush() failure permanent without O_DIRECT, Max Reitz, 2017/03/27
- Re: [Qemu-devel] [PULL 0/6] Block patches for rc2, Peter Maydell, 2017/03/27