From 2132b9543b9b82bb5cea8f54fa41feeaed2c7ba0 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sun, 6 Aug 2017 13:59:07 +0200 Subject: print_help(): omit braces around for loop body --- colorize.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'colorize.c') diff --git a/colorize.c b/colorize.c index 8e31f5c..cfc9159 100644 --- a/colorize.c +++ b/colorize.c @@ -538,13 +538,11 @@ print_help (void) const char *short_opt = NULL; unsigned int i; for (i = 0; i < sizeof (short_opts) / sizeof (struct short_opt); i++) - { - if (streq (opt->name, short_opts[i].name)) - { - short_opt = short_opts[i].short_opt; - break; - } - } + if (streq (opt->name, short_opts[i].name)) + { + short_opt = short_opts[i].short_opt; + break; + } if (short_opt) printf ("\t\t-%s, --%s\n", short_opt, opt->name); else -- cgit v1.2.3