From c2eb2eeda3782b122737977f43fdfa5f05ced259 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 25 May 2018 01:18:53 -0400 Subject: Use break; case style everywhere* *Except in switches where every branch does a return. --- bin/glitch.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'bin/glitch.c') 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; } } -- cgit 1.4.1