-/* $OpenBSD: agentx.c,v 1.9 2014/12/21 00:54:49 guenther Exp $ */
+/* $OpenBSD: agentx.c,v 1.10 2015/01/22 15:21:28 reyk Exp $ */
/*
* Copyright (c) 2013,2014 Bret Stephen Lambert <blambert@openbsd.org>
*
}
int
-snmp_agentx_read_searchrange(struct agentx_pdu *pdu, struct agentx_search_range *sr)
+snmp_agentx_read_searchrange(struct agentx_pdu *pdu,
+ struct agentx_search_range *sr)
{
if (snmp_agentx_do_read_oid(pdu, &sr->start, &sr->include) == -1 ||
snmp_agentx_read_oid(pdu, &sr->end) == -1)
return;
}
- fprintf(stderr,
+ fprintf(stderr,
"agentx: version %d type %s flags %d reserved %d"
" sessionid %d transactid %d packetid %d length %d",
hdr->version, snmp_agentx_type2name(hdr->type), hdr->flags,
-/* $OpenBSD: pfe_filter.c,v 1.56 2015/01/21 21:50:33 deraadt Exp $ */
+/* $OpenBSD: pfe_filter.c,v 1.57 2015/01/22 15:21:28 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
if (rio.rule.proto == IPPROTO_TCP)
rio.rule.timeout[PFTM_TCP_ESTABLISHED] =
- (u_int32_t)MINIMUM(rdr->conf.timeout.tv_sec, INT_MAX);
+ (u_int32_t)MINIMUM(rdr->conf.timeout.tv_sec,
+ INT_MAX);
if (strlen(rdr->conf.tag))
(void)strlcpy(rio.rule.tagname, rdr->conf.tag,
-/* $OpenBSD: relay.c,v 1.188 2015/01/22 09:26:05 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.189 2015/01/22 15:21:28 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
goto err;
}
- if (cre->tlsreneg_state == TLSRENEG_ABORT) {
+ if (cre->tlsreneg_state == TLSRENEG_ABORT) {
what |= EVBUFFER_ERROR;
goto err;
}
-/* $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>
/* 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 &&
}
matchdel:
- switch(kv->kv_option) {
+ switch (kv->kv_option) {
case KEY_OPTION_LOG:
if (match == NULL)
break;
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);
-/* $OpenBSD: relayd.c,v 1.136 2015/01/16 15:06:40 deraadt Exp $ */
+/* $OpenBSD: relayd.c,v 1.137 2015/01/22 15:21:28 reyk Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
continue;
if (kv_inherit(&r->rule_kv[i], kv) == NULL) {
free(r);
- return(NULL);
+ return (NULL);
}
}
rule_settable(struct relay_rules *rules, struct relay_table *rlt)
{
struct relay_rule *r;
- char pname[TABLE_NAME_SIZE];
+ char pname[TABLE_NAME_SIZE];
if (rlt->rlt_table == NULL || strlcpy(pname, rlt->rlt_table->conf.name,
sizeof(pname)) >= sizeof(pname))