From bdb67f6892e4dee6b93dcf554f60d55058f62238 Mon Sep 17 00:00:00 2001 From: June 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/xx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/xx.c') 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]; -- cgit 1.4.1