summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 15:23:32 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:28 +0200
commit32c7caf7103ac702cc56c126104144ece0f451e2 (patch)
tree994f22c8fe1ac6a71de66759f0dda90a780b9b72
parent8f955d55437d9038de701d1531243ef868a57206 (diff)
downloadtinyproxy-32c7caf7103ac702cc56c126104144ece0f451e2.tar.gz
tinyproxy-32c7caf7103ac702cc56c126104144ece0f451e2.zip
conffile: reformat some indentation and linebreak in the directives definition.
Michael
-rw-r--r--src/conffile.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/conffile.c b/src/conffile.c
index 6510555..f6074d3 100644
--- a/src/conffile.c
+++ b/src/conffile.c
@@ -167,11 +167,9 @@ struct
} directives[] =
{
/* comments */
- {
- BEGIN "#", handle_nop},
- /* blank lines */
- {
- "^[[:space:]]+$", handle_nop},
+ { BEGIN "#", handle_nop },
+ /* blank lines */
+ { "^[[:space:]]+$", handle_nop },
/* string arguments */
STDCONF ("logfile", STR, handle_logfile),
STDCONF ("pidfile", STR, handle_pidfile),
@@ -219,12 +217,12 @@ struct
STDCONF ("reversepath", STR WS "(" STR ")?", handle_reversepath),
#endif
#ifdef UPSTREAM_SUPPORT
- /* upstream is rather complicated */
- {
- BEGIN "(no" WS "upstream)" WS STR END, handle_upstream_no},
+ /* upstream is rather complicated */
+ { BEGIN "(no" WS "upstream)" WS STR END, handle_upstream_no },
{
- BEGIN "(upstream)" WS "(" IP "|" ALNUM ")" ":" INT "(" WS STR ")?" END,
- handle_upstream},
+ BEGIN "(upstream)" WS "(" IP "|" ALNUM ")" ":" INT "(" WS STR ")?" END,
+ handle_upstream
+ },
#endif
/* loglevel */
STDCONF ("loglevel", "(critical|error|warning|notice|connect|info)",