]> mj.ucw.cz Git - libucw.git/commitdiff
short_opts[] should be chars, not bytes
authorPavel Charvat <pchar@ucw.cz>
Mon, 27 Oct 2008 10:05:47 +0000 (11:05 +0100)
committerPavel Charvat <pchar@ucw.cz>
Mon, 27 Oct 2008 10:05:47 +0000 (11:05 +0100)
ucw/conf-test.c
ucw/doc/conf.txt

index 26e0887ecad3ccf7963bcaa817ccc683c9acbbcc..b62cde6c69b8fed0e15228de8b24e9541b76f6a9 100644 (file)
@@ -162,7 +162,7 @@ static struct cf_section cf_top = {
   }
 };
 
-static byte short_opts[] = CF_SHORT_OPTS "v";
+static char short_opts[] = CF_SHORT_OPTS "v";
 static struct option long_opts[] = {
        CF_LONG_OPTS
        {"verbose",     0, 0, 'v'},
index c4abef317d347fe5e8159aec943e454e2c7f5e83..2bc7cf081e0b75ca88ff0b73fd8c1ea18dd42794 100644 (file)
@@ -104,14 +104,14 @@ configuration files.
   #include <ucw/conf.h>
   #include <ucw/getopt.h>
 
-  static byte short_opts[] = CF_SHORT_OPTS "v";
+  static char short_opts[] = CF_SHORT_OPTS "v";
   static struct option long_opts[] = {
     CF_LONG_OPTS
     { "verbose", 0, 0, 'v' },
     { NULL, 0, 0, 0 }
   };
 
-  int verbose;
+  static int verbose;
 
   int main(int argc, char *argv[]) {
     cf_def_file = "default.cf";