From nobody Mon Mar 06 19:26:58 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVpVV4s43z3wHMR; Mon, 6 Mar 2023 19:26:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVpVV49Wqz4Lbn; Mon, 6 Mar 2023 19:26:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678130818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9ZAX0RH2Kwvtd0P9akK9Ux0hnOt0TaoYLwH4GdLFLx4=; b=m1f4nPD8HvherrJ4sEV1lytfPGzPf48HIXNRDhdE+DLwcIJ9wa0sv6EXw44K7GnIISzial ct5ZxaMd86of9sLKFXDvESTw66Jc9hdZVcLAQ3tlCb766nL531hZELbscgUx5zHRJ7qwcQ NfOMTZs3rtG5kVAZwPmcwtbkMs4+JQvGhSX+fcA94suRiKXXHdO5llo6Hlw2+IOZi78Dl+ wYqHRgvUq7NJyWW18gb/aODtq5kx3N/+dRXFMAWTomWf6cupFdJ0+P4Ogn8NJRFN6mrean ffv2yM/6DFzNYmSvKhFI2U0UCTMAL1GOg5FfhqrOxVtyT0csU6DHPfvawuKU/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678130818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9ZAX0RH2Kwvtd0P9akK9Ux0hnOt0TaoYLwH4GdLFLx4=; b=Z8MYuETV4tkZ3r4FTQkldJfcnR1xxwOOMojfFWIi9BMLwmg2yII4yhC0kZQZfSBPrun+2N vrDmp/H28rXHDuPbg9YVscErkHU1u+4mKFIC3A4vNbZ2qHdMA9EC0lB/AU3/gWtq5lBmZo 9fRcZWSJ6l4vfLWgf819bYzsddEjW6IOlFxZiege1ReMhU3zB0nuFqkRhrgJihTuD1mDsZ v5ePYMTOCqaqluxg9sWYpCuKMC6be7bRK/98J3L763RT8Oc6cHtuyIbz9PhQRGvc5h7zGT BsbGBjdbREKpT3KS+rTHuxmWs2hhHHjVqaYt7bC1SOF/DLDbKy0UXnCfHjjQEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678130818; a=rsa-sha256; cv=none; b=xCiOKnLfru3zot8ISFHuifA7Ab5CazbMOY9d+pSYKgSDvt1Fs6b34Bo4VkWU+REwo2su7A phMhGwEULHXmtd2pPkT4OB6QcWm/tLuU3CYMVCZo5OxlFzexGXl6PY+z6yJv425OsIWHGq VG4QcmvdkWHOa4P2eB0Qa3how6qQ/u/uL8SHQiP+d3NH/AxSRtdo+bDz9TZ2CBAEmZDo8y p+F5vkMxO8lA5cREMxHfHZ5YwzMLYMK61gcyivRaQSInoVlLsNDiY4kv61OG7WMaWHAfbI 0W0jrwtPG6+u9sbN/NCjnHCJ8hQ02WTY1JoansmG4ncTNa+CHH9qO81AQdvukQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PVpVV3GdkzDxX; Mon, 6 Mar 2023 19:26:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 326JQwBu004192; Mon, 6 Mar 2023 19:26:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 326JQwg3004191; Mon, 6 Mar 2023 19:26:58 GMT (envelope-from git) Date: Mon, 6 Mar 2023 19:26:58 GMT Message-Id: <202303061926.326JQwg3004191@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 1be25bdb730f - main - pfctl: remove set but unused variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1be25bdb730ff07355cd6f5cb087d58e506c5519 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=1be25bdb730ff07355cd6f5cb087d58e506c5519 commit 1be25bdb730ff07355cd6f5cb087d58e506c5519 Author: Kristof Provost AuthorDate: 2023-03-06 07:10:27 +0000 Commit: Kristof Provost CommitDate: 2023-03-06 18:22:35 +0000 pfctl: remove set but unused variable In pfctl_show_ifaces() `i` is set, but never used. Remove it. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/pfctl_table.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c index db338fbe0876..3d1aef5571d6 100644 --- a/sbin/pfctl/pfctl_table.c +++ b/sbin/pfctl/pfctl_table.c @@ -585,7 +585,6 @@ pfctl_show_ifaces(const char *filter, int opts) { struct pfr_buffer b; struct pfi_kif *p; - int i = 0; bzero(&b, sizeof(b)); b.pfrb_type = PFRB_IFACES; @@ -598,7 +597,6 @@ pfctl_show_ifaces(const char *filter, int opts) } if (b.pfrb_size <= b.pfrb_msize) break; - i++; } if (opts & PF_OPT_SHOWALL) pfctl_print_title("INTERFACES:");