From: florian Date: Mon, 8 Jul 2024 14:22:09 +0000 (+0000) Subject: cleanup unused variable X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7c99229c4632c23cb8d758e8587886cef3a61e63;p=openbsd cleanup unused variable --- diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c index e62ece35ff5..ce7b6817f75 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.87 2023/12/01 16:48:40 millert Exp $ */ +/* $OpenBSD: relay_http.c,v 1.88 2024/07/08 14:22:09 florian Exp $ */ /* * Copyright (c) 2006 - 2016 Reyk Floeter @@ -1972,7 +1972,6 @@ relay_test(struct protocol *proto, struct ctl_relay_event *cre) struct http_descriptor *desc = cre->desc; struct relay_rule *r = NULL, *rule = NULL; struct relay_table *tbl = NULL; - u_int cnt = 0; u_int action = RES_PASS; struct kvlist actions, matches; struct kv *kv; @@ -1983,8 +1982,6 @@ relay_test(struct protocol *proto, struct ctl_relay_event *cre) r = TAILQ_FIRST(&proto->rules); while (r != NULL) { - cnt++; - TAILQ_INIT(&matches); TAILQ_INIT(&r->rule_kvlist);