]> mj.ucw.cz Git - libucw.git/commitdiff
Opt: Whitespace cleanup
authorMartin Mares <mj@ucw.cz>
Tue, 3 Sep 2013 13:24:02 +0000 (15:24 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 3 Sep 2013 13:24:02 +0000 (15:24 +0200)
ucw/opt.c
ucw/opt.h

index bc545d8a7ba2c87fe6113f81d784e3cf16a0f454..f102abf0fd00480ce237d7e3c43f2181b9e12406 100644 (file)
--- 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++) {
index c31d1cedc87ec2f8ef37156f25dd5b06d8cf59d1..4fddf730ae2953ba119aeef5d940ca8ed599be62 100644 (file)
--- 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
  ***/