diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-01-22 15:21:29 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-01-22 15:21:29 +0000 |
commit | c2e24001c193deb82d432f16cd654fc4942b02bd (patch) | |
tree | 07b44984b3e8837f6e9352e87453c94eb30baab1 /usr.sbin/relayd/relay_http.c | |
parent | 19f2cc60c604e2d10122c90dae6312642d53d88a (diff) |
spacing
Diffstat (limited to 'usr.sbin/relayd/relay_http.c')
-rw-r--r-- | usr.sbin/relayd/relay_http.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c index 99b804d06f5..7ab81b28d4c 100644 --- a/usr.sbin/relayd/relay_http.c +++ b/usr.sbin/relayd/relay_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay_http.c,v 1.41 2015/01/16 15:06:40 deraadt Exp $ */ +/* $OpenBSD: relay_http.c,v 1.42 2015/01/22 15:21:28 reyk Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org> @@ -1252,7 +1252,8 @@ relay_httpheader_test(struct ctl_relay_event *cre, struct relay_rule *rule, /* Fail if header doesn't exist */ return (-1); } else { - if (fnmatch(kv->kv_key, match->kv_key, FNM_CASEFOLD) == FNM_NOMATCH) + if (fnmatch(kv->kv_key, match->kv_key, + FNM_CASEFOLD) == FNM_NOMATCH) return (-1); if (kv->kv_value != NULL && match->kv_value != NULL && @@ -1537,7 +1538,7 @@ relay_apply_actions(struct ctl_relay_event *cre, struct kvlist *actions) } matchdel: - switch(kv->kv_option) { + switch (kv->kv_option) { case KEY_OPTION_LOG: if (match == NULL) break; @@ -1546,10 +1547,10 @@ relay_apply_actions(struct ctl_relay_event *cre, struct kvlist *actions) goto fail; if (mp->kv_flags & KV_FLAG_INVALID) { if (kv_set(mp, "%s (removed)", - mp->kv_value) == -1) + mp->kv_value) == -1) goto fail; } - switch(kv->kv_type) { + switch (kv->kv_type) { case KEY_TYPE_URL: key.kv_key = "Host"; host = kv_find(&desc->http_headers, &key); |