diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-02-08 19:59:11 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-02-08 19:59:11 +0000 |
commit | e141ac93d58cf08acf2e3b01b4bb41ad6d289339 (patch) | |
tree | 20d6d160e5b525a4f55cff31f2309a770f0aec9b /sbin | |
parent | 0d05fbbd6ad1f354c72c083239051f63687134d0 (diff) |
iked: garbage collect an unused counter variable to make clang 15 happier
ok tobhe
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/policy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/iked/policy.c b/sbin/iked/policy.c index 4486a78c740..fec73e319f9 100644 --- a/sbin/iked/policy.c +++ b/sbin/iked/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.92 2022/10/10 11:33:55 tobhe Exp $ */ +/* $OpenBSD: policy.c,v 1.93 2023/02/08 19:59:10 tb Exp $ */ /* * Copyright (c) 2020-2021 Tobias Heider <tobhe@openbsd.org> @@ -222,11 +222,9 @@ struct iked_policy * policy_test(struct iked *env, struct iked_policy *key) { struct iked_policy *p = NULL, *pol = NULL; - unsigned int cnt = 0; p = TAILQ_FIRST(&env->sc_policies); while (p != NULL) { - cnt++; if (p->pol_flags & IKED_POLICY_SKIP) p = p->pol_skip[IKED_SKIP_FLAGS]; else if (key->pol_af && p->pol_af && |