Skip to content

Commit

Permalink
cmd: Correctly indent switch statement
Browse files Browse the repository at this point in the history
checkpatch.pl emits error

    ERROR: do not use assignment in if condition

Correctly indent switch statement.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
  • Loading branch information
tcharding committed Aug 16, 2018
1 parent 03eda56 commit 27fdb6b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/lxc/cmd/lxc_usernsexec.c
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit 27fdb6b

Please sign in to comment.