From f1f2bdf6cec450921078ee02adb749cb944e4a18 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Sep 2013 15:24:02 +0200 Subject: [PATCH] Opt: Whitespace cleanup --- ucw/opt.c | 8 ++++---- ucw/opt.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ucw/opt.c b/ucw/opt.c index bc545d8a..f102abf0 100644 --- a/ucw/opt.c +++ b/ucw/opt.c @@ -415,7 +415,7 @@ static int opt_shortopt(char ** argv, int index, struct opt_precomputed * pre) { if (argv[index][chr]) opt_failure("Unknown option -%c.", argv[index][chr]); - + return 0; } @@ -479,18 +479,18 @@ void opt_parse(const struct opt_section * options, char ** argv) { if (item->cls == OPT_CL_HOOK) hooks++; } - + pre->opts = alloca(sizeof(*pre->opts) * count); pre->shortopt = alloca(sizeof(*pre->shortopt) * (opt_positional_max + 257)); memset(pre->shortopt, 0, sizeof(*pre->shortopt) * (opt_positional_max + 257)); pre->hooks_before_arg = alloca(sizeof (*pre->hooks_before_arg) * hooks); pre->hooks_before_value = alloca(sizeof (*pre->hooks_before_value) * hooks); pre->hooks_after_value = alloca(sizeof (*pre->hooks_after_value) * hooks); - + pre->hooks_before_arg_count = 0; pre->hooks_before_value_count = 0; pre->hooks_after_value_count = 0; - + pre->opt_count = 0; for (struct opt_item * item = options->opt; ; item++) { diff --git a/ucw/opt.h b/ucw/opt.h index c31d1ced..4fddf730 100644 --- a/ucw/opt.h +++ b/ucw/opt.h @@ -105,7 +105,7 @@ struct opt_section { /*** * UCW Conf options * ~~~~~~~~~~~~~~~~ - * + * * OPT_CONF_OPTIONS declares -C and -S as described in @getopt.h ***/ -- 2.39.2