From: Tobin C. Harding Date: Thu, 16 Aug 2018 06:55:09 +0000 (+1000) Subject: cmd: Correctly indent switch statement X-Git-Tag: lxc-3.1.0~158^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27fdb6bec5303a24e2f02693e7bd65dcf732ff6f;p=thirdparty%2Flxc.git cmd: Correctly indent switch statement checkpatch.pl emits error ERROR: do not use assignment in if condition Correctly indent switch statement. Signed-off-by: Tobin C. Harding --- diff --git a/src/lxc/cmd/lxc_usernsexec.c b/src/lxc/cmd/lxc_usernsexec.c index c342a90a0..07e6c9e41 100644 --- a/src/lxc/cmd/lxc_usernsexec.c +++ b/src/lxc/cmd/lxc_usernsexec.c @@ -333,18 +333,18 @@ int main(int argc, char *argv[]) while ((c = getopt(argc, argv, "m:h")) != EOF) { switch (c) { - case 'm': - if (parse_map(optarg)) { - usage(argv[0]); - exit(EXIT_FAILURE); - } - break; - case 'h': - usage(argv[0]); - exit(EXIT_SUCCESS); - default: - usage(argv[0]); - exit(EXIT_FAILURE); + case 'm': + if (parse_map(optarg)) { + usage(argv[0]); + exit(EXIT_FAILURE); + } + break; + case 'h': + usage(argv[0]); + exit(EXIT_SUCCESS); + default: + usage(argv[0]); + exit(EXIT_FAILURE); } };