From: Pavel Charvat Date: Mon, 27 Oct 2008 10:05:47 +0000 (+0100) Subject: short_opts[] should be chars, not bytes X-Git-Tag: holmes-import~240 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2364f65a0e59c09cdf84d4c6cb98b8fa630b9db0;p=libucw.git short_opts[] should be chars, not bytes --- diff --git a/ucw/conf-test.c b/ucw/conf-test.c index 26e0887e..b62cde6c 100644 --- a/ucw/conf-test.c +++ b/ucw/conf-test.c @@ -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'}, diff --git a/ucw/doc/conf.txt b/ucw/doc/conf.txt index c4abef31..2bc7cf08 100644 --- a/ucw/doc/conf.txt +++ b/ucw/doc/conf.txt @@ -104,14 +104,14 @@ configuration files. #include #include - 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";