conffile: reformat the directives array for readability.
Michael
This commit is contained in:
parent
b6413068e2
commit
c8e1696a22
@ -164,10 +164,12 @@ struct {
|
||||
} directives[] = {
|
||||
/* comments */
|
||||
{
|
||||
BEGIN "#", handle_nop, NULL},
|
||||
BEGIN "#", handle_nop, NULL
|
||||
},
|
||||
/* blank lines */
|
||||
{
|
||||
"^[[:space:]]+$", handle_nop, NULL},
|
||||
"^[[:space:]]+$", handle_nop, NULL
|
||||
},
|
||||
/* string arguments */
|
||||
STDCONF ("logfile", STR, handle_logfile),
|
||||
STDCONF ("pidfile", STR, handle_pidfile),
|
||||
@ -217,7 +219,9 @@ struct {
|
||||
#ifdef UPSTREAM_SUPPORT
|
||||
/* upstream is rather complicated */
|
||||
{
|
||||
BEGIN "(no" WS "upstream)" WS STR END, handle_upstream_no, NULL}, {
|
||||
BEGIN "(no" WS "upstream)" WS STR END, handle_upstream_no, NULL
|
||||
},
|
||||
{
|
||||
BEGIN "(upstream)" WS "(" IP "|" ALNUM ")" ":" INT "(" WS STR
|
||||
")?" END, handle_upstream, NULL},
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user