From: Martin Mares Date: Tue, 3 Sep 2013 13:24:02 +0000 (+0200) Subject: Opt: Whitespace cleanup X-Git-Tag: v5.99~25^2~42 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f1f2bdf6cec450921078ee02adb749cb944e4a18;p=libucw.git Opt: Whitespace cleanup --- 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 ***/