From c2e24001c193deb82d432f16cd654fc4942b02bd Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Thu, 22 Jan 2015 15:21:29 +0000 Subject: spacing --- usr.sbin/relayd/relay_http.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr.sbin/relayd/relay_http.c') 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 @@ -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); -- cgit v1.2.3