summary refs log tree commit diff
path: root/bin/xx.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-05-25 01:18:53 -0400
committerJune McEnroe <june@causal.agency>2018-05-25 01:18:53 -0400
commitbdb67f6892e4dee6b93dcf554f60d55058f62238 (patch)
tree56bf2e5d008f90169ee33f7494d423c0615fca7f /bin/xx.c
parentUse PF_UNIX (diff)
downloadsrc-bdb67f6892e4dee6b93dcf554f60d55058f62238.tar.gz
src-bdb67f6892e4dee6b93dcf554f60d55058f62238.zip
Use break; case style everywhere*
*Except in switches where every branch does a return.
Diffstat (limited to 'bin/xx.c')
-rw-r--r--bin/xx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/xx.c b/bin/xx.c
index 663ee044..c584be61 100644
--- a/bin/xx.c
+++ b/bin/xx.c
@@ -107,13 +107,13 @@ int main(int argc, char *argv[]) {
 	int opt;
 	while (0 < (opt = getopt(argc, argv, "ac:g:rsz"))) {
 		switch (opt) {
-			case 'a': options.ascii ^= true; break;
-			case 'c': options.cols = strtoul(optarg, NULL, 0); break;
-			case 'g': options.group = strtoul(optarg, NULL, 0); break;
-			case 'r': reverse = true; break;
-			case 's': options.offset ^= true; break;
-			case 'z': options.skip ^= true; break;
-			default: return EX_USAGE;
+			break; case 'a': options.ascii ^= true;
+			break; case 'c': options.cols = strtoul(optarg, NULL, 0);
+			break; case 'g': options.group = strtoul(optarg, NULL, 0);
+			break; case 'r': reverse = true;
+			break; case 's': options.offset ^= true;
+			break; case 'z': options.skip ^= true;
+			break; default: return EX_USAGE;
 		}
 	}
 	if (argc > optind) path = argv[optind];