From nobody Sat Dec 11 05:53:13 2021 X-Original-To: dev-commits-src-all@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 89E3818E7747; Sat, 11 Dec 2021 05:53:14 +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 4J9xlF5JSdz4v2L; Sat, 11 Dec 2021 05:53:13 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 67E64AD7; Sat, 11 Dec 2021 05:53:13 +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 1BB5rDEK059251; Sat, 11 Dec 2021 05:53:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BB5rDx4059250; Sat, 11 Dec 2021 05:53:13 GMT (envelope-from git) Date: Sat, 11 Dec 2021 05:53:13 GMT Message-Id: <202112110553.1BB5rDx4059250@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: edcdd4f6445a - main - ipfilter printfieldhdr: remove set-but-not-unused vars List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: edcdd4f6445ad50c8f7c6e974d0216c5be9356d5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639201993; 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=3Clmv8PsqMcDEt3KdqRXLew+R8l+PGjr3vUOU5X/PrM=; b=cKcrwYhVC0ViUBx+8HSeK6iJb2ezBrc45YYuv7l/JVAsQG0FQ9Muk21SHTnrT1t0CjXcGc jRtJ6JpCeH4/FlRdrGZKJdOYYwLDSXAfiv8Syt1SIdniAGJD34xpAUxs2QrE3Xr7lCFBCW b2W/B1vED7+KWTV0HZb39rT+sVjRGHrcVr67D11JJX6GPerZI3+EP3aLEbLYuMiIzAp6yH JeHWZnUCf4LhMHi87qKFCCZUcRB+UiXPbLxaDp4aIk3sSUUGFKi+ZwIqIEAAKUO8QWy/rX d+XU/tRFmt/HYvLhm26QYujwIYbt7x2TYsonxbTgaI2plBbRm8OiJ+udMh8eRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639201993; a=rsa-sha256; cv=none; b=rr0BBY8wD9v8rb5NlznEMa4I89PP+u+sT38QtwVft8nxo/cXugwCHpGppnvdwBz3ijvpvf ZZi46tr4Ig/HrXCChnVUj/r01aIhiIPpAShWMYhEDU3Z5uUml+gg0CThkNP3aUiex3UKsH hBREcAbT9omTN2rveAe0+IUr4DYXqoY0S2t8qlt4mHNCn+KYTeRUi/XvxBO4fyQPsd+Qzd JiGFo5xQ6n+rb17IsLCh+PMnqHvjJ4p/MoJatAx+l0eejE6Tm4vCmALqPGikbRucLlgwSp GNOgRerQ79QRCUC2b5Hlf6fMMOcOLybX4qrktyOYMKVnUMZ3+p98+OgiSoriyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=edcdd4f6445ad50c8f7c6e974d0216c5be9356d5 commit edcdd4f6445ad50c8f7c6e974d0216c5be9356d5 Author: Cy Schubert AuthorDate: 2021-12-11 04:51:01 +0000 Commit: Cy Schubert CommitDate: 2021-12-11 05:52:54 +0000 ipfilter printfieldhdr: remove set-but-not-unused vars MFC after: 3 days --- contrib/ipfilter/lib/printfieldhdr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/ipfilter/lib/printfieldhdr.c b/contrib/ipfilter/lib/printfieldhdr.c index 3cc22a655a63..f796f6fed62f 100644 --- a/contrib/ipfilter/lib/printfieldhdr.c +++ b/contrib/ipfilter/lib/printfieldhdr.c @@ -16,10 +16,9 @@ printfieldhdr(words, field) { wordtab_t *w; char *s, *t; - int i; if (field->w_value == -2) { - for (i = 0, w = words; w->w_word != NULL; ) { + for (w = words; w->w_word != NULL; ) { if (w->w_value > 0) { printfieldhdr(words, w); w++;