Unverified Commit d3d13097 by Tobin C. Harding Committed by Christian Brauner

cmd: Correctly indent switch statement

checkpatch.pl emits error ERROR: do not use assignment in if condition Correctly indent switch statement. Signed-off-by: 's avatarTobin C. Harding <me@tobin.cc>
parent fbc67eba
......@@ -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);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment