From 2364f65a0e59c09cdf84d4c6cb98b8fa630b9db0 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Mon, 27 Oct 2008 11:05:47 +0100 Subject: [PATCH] short_opts[] should be chars, not bytes --- ucw/conf-test.c | 2 +- ucw/doc/conf.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"; -- 2.39.5