summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-15 02:22:04 +0200
committerMichael Adam <obnox@samba.org>2009-09-15 02:25:10 +0200
commit574a65c28e6d016b8871deee12792c33be67c9bb (patch)
treed51758a18eaf777a63124377495f24bcd3783e77 /src
parentc240ca3bcc99eda05b9a12cb8632666424b9c3f6 (diff)
downloadtinyproxy-574a65c28e6d016b8871deee12792c33be67c9bb.tar.gz
tinyproxy-574a65c28e6d016b8871deee12792c33be67c9bb.zip
filter: un-linebreak after un-indent...
Michael
Diffstat (limited to '')
-rw-r--r--src/filter.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/filter.c b/src/filter.c
index 3a955ce..9f88430 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -86,8 +86,7 @@ void filter_init (void)
* an escape, it's not a comment
* string.
*/
- if (s == buf
- || *(s - 1) != '\\')
+ if (s == buf || *(s - 1) != '\\')
break;
}
++s;
@@ -106,21 +105,16 @@ void filter_init (void)
if (!p) /* head of list */
fl = p =
(struct filter_list *)
- safecalloc (1,
- sizeof (struct
- filter_list));
+ safecalloc (1, sizeof (struct filter_list));
else { /* next entry */
p->next =
(struct filter_list *)
- safecalloc (1,
- sizeof (struct
- filter_list));
+ safecalloc (1, sizeof (struct filter_list));
p = p->next;
}
p->pat = safestrdup (s);
- p->cpat =
- (regex_t *) safemalloc (sizeof (regex_t));
+ p->cpat = (regex_t *) safemalloc (sizeof (regex_t));
err = regcomp (p->cpat, p->pat, cflags);
if (err != 0) {
fprintf (stderr,