]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/doc/conf.txt
Fixed a typo in configuration example.
[libucw.git] / ucw / doc / conf.txt
index c4abef317d347fe5e8159aec943e454e2c7f5e83..71358a81c71344b75851d809f9b71df4c06202d1 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";
@@ -152,7 +152,7 @@ are three ways to do that:
 +
 For example, you can have an static array of five unsigned integers:
 +
-  static uns array = { 1, 2, 3, 4, 5 };
+  static uns array[] = { 1, 2, 3, 4, 5 };
 +
   static struct cf_section section = {
     CF_ITEMS {