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