cleanup unused variable
authorflorian <florian@openbsd.org>
Mon, 8 Jul 2024 14:22:09 +0000 (14:22 +0000)
committerflorian <florian@openbsd.org>
Mon, 8 Jul 2024 14:22:09 +0000 (14:22 +0000)
usr.sbin/relayd/relay_http.c

index e62ece3..ce7b681 100644 (file)
@@ -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 <reyk@openbsd.org>
@@ -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);