conffile: fix some missing initializer warnings in the directives definition.

Michael
This commit is contained in:
Michael Adam 2009-08-04 15:24:26 +02:00
parent 32c7caf710
commit e6ac4b28cd

View File

@ -167,9 +167,9 @@ struct
} directives[] = } directives[] =
{ {
/* comments */ /* comments */
{ BEGIN "#", handle_nop }, { BEGIN "#", handle_nop, NULL },
/* blank lines */ /* blank lines */
{ "^[[:space:]]+$", handle_nop }, { "^[[:space:]]+$", handle_nop, NULL },
/* string arguments */ /* string arguments */
STDCONF ("logfile", STR, handle_logfile), STDCONF ("logfile", STR, handle_logfile),
STDCONF ("pidfile", STR, handle_pidfile), STDCONF ("pidfile", STR, handle_pidfile),
@ -218,10 +218,11 @@ struct
#endif #endif
#ifdef UPSTREAM_SUPPORT #ifdef UPSTREAM_SUPPORT
/* upstream is rather complicated */ /* upstream is rather complicated */
{ BEGIN "(no" WS "upstream)" WS STR END, handle_upstream_no }, { BEGIN "(no" WS "upstream)" WS STR END, handle_upstream_no, NULL },
{ {
BEGIN "(upstream)" WS "(" IP "|" ALNUM ")" ":" INT "(" WS STR ")?" END, BEGIN "(upstream)" WS "(" IP "|" ALNUM ")" ":" INT "(" WS STR ")?" END,
handle_upstream handle_upstream,
NULL
}, },
#endif #endif
/* loglevel */ /* loglevel */