summary refs log tree commit diff
path: root/bin/glitch.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
commitc2eb2eeda3782b122737977f43fdfa5f05ced259 (patch)
tree01634d6b8f498d8fbbd9a2f143c99257470ac29f /bin/glitch.c
parentUse PF_UNIX (diff)
downloadsrc-c2eb2eeda3782b122737977f43fdfa5f05ced259.tar.gz
src-c2eb2eeda3782b122737977f43fdfa5f05ced259.zip
Use break; case style everywhere*
*Except in switches where every branch does a return.
Diffstat (limited to 'bin/glitch.c')
-rw-r--r--bin/glitch.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/bin/glitch.c b/bin/glitch.c
index db2d3fae..a8c3bfff 100644
--- a/bin/glitch.c
+++ b/bin/glitch.c
@@ -460,18 +460,16 @@ int main(int argc, char *argv[]) {
 	int opt;
 	while (0 < (opt = getopt(argc, argv, "a:cd:fo:pr"))) {
 		switch (opt) {
-			case 'a': {
+			break; case 'a':
 				options.applyFilter = parseFilters(options.applyFilters, optarg);
-			} break;
-			case 'c': stdio = true; break;
-			case 'd': {
+			break; case 'c': stdio = true;
+			break; case 'd':
 				options.declareFilter = parseFilters(options.declareFilters, optarg);
-			} break;
-			case 'f': options.filt = true; break;
-			case 'o': output = optarg; break;
-			case 'p': options.brokenPaeth = true; break;
-			case 'r': options.recon = true; break;
-			default: return EX_USAGE;
+			break; case 'f': options.filt = true;
+			break; case 'o': output = optarg;
+			break; case 'p': options.brokenPaeth = true;
+			break; case 'r': options.recon = true;
+			break; default: return EX_USAGE;
 		}
 	}