From: Pavel Charvat Date: Thu, 11 May 2006 11:29:48 +0000 (+0200) Subject: more intuitive parameter in configuration reader X-Git-Tag: holmes-import~641^2~23 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b3e3672e846e2af7ddf26d2137ed2dbad652b977;p=libucw.git more intuitive parameter in configuration reader --- diff --git a/lib/shell/config.c b/lib/shell/config.c index 6efb6201..a3eedec4 100644 --- a/lib/shell/config.c +++ b/lib/shell/config.c @@ -50,7 +50,7 @@ Types:\n\ $\t\tFloating point number\n\ \n\ Modifiers:\n\ -*\t\tReport unknown items as errors\n\ +!\t\tReport unknown items as errors\n\ -\t\tDo not dump item's value\n\ ", stderr); exit(1); @@ -200,7 +200,7 @@ parse_outer(void) parse_char(','); parse_white(); struct section *sec = mp_alloc_zero(pool, sizeof(*sec)); - if (*pos == '*') + if (*pos == '!') { pos++; sec->item.flags |= FLAG_NO_UNKNOWN;