From nobody Tue Dec 14 01:20:58 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 B67A018D7C20; Tue, 14 Dec 2021 01:21:00 +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 4JCgYl3dB3z4rbW; Tue, 14 Dec 2021 01:20:59 +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 2D9E61F136; Tue, 14 Dec 2021 01:20:59 +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 1BE1Kw4Q060811; Tue, 14 Dec 2021 01:20:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BE1KwuJ060810; Tue, 14 Dec 2021 01:20:58 GMT (envelope-from git) Date: Tue, 14 Dec 2021 01:20:58 GMT Message-Id: <202112140120.1BE1KwuJ060810@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: 277e5da4c511 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 277e5da4c511b41bf9845e4d1144a8fe2311dee4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639444859; 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=U1/mgfSTYYy9sBmtoP/S38K19FQzI3faAXO3jb2xdu0=; b=kS+9LfFahbmgqnD3emjPBB5oBPzYMLTXpYcJqFs1jYZO9IWWaUsk9ybbFCqf6Wk49pevG5 wNYKqxHdn7XTarqfd8MysT1m52nbX+9OnRJBp+6BBz8QM+f2zVpEnmZboesxyKEWLzN95y H13to5+/BlNiX4f6bTOov1n4jJ3nwnxN2kz0FuqrqN4Y3NbqhgbrNDa8xrWjTBaNunzhP7 WSyw89E5DyuFV+bW0fzxY/yqaFwluHi6S7syUPHjxnuwLwZJA/vAL6XHzaSlX2HPMKx4aO ohtJ7GXuZWtILbcv3Z/QkXhC+cD/R2nWZuSO1XpaHEHGB7EmKkbS7N+v3p//Kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639444859; a=rsa-sha256; cv=none; b=maauWxar5rwdE1sm+/3n8+dHdVH+gI8e73QqZUTBpRHDUQ3pc/9qJSyZYbCmm9i1pzzXZ9 8S9T2GNNsfZ7/Vy+/G9gvqxY/QtzzuoLPhUCb1vY10FnySd2mBtoDY54DBcUg1V2/2BPu7 4U5359QQSAln/Gd7h6okS3H1B+KJfMMUuTipNJrpXuocCNBCfLqaokcesZ0qgKulpN9niM 0ZWlG+cUogaMizBJtWJ5TNcbz3SDoj7zwcWDLz1LAFFc1SukbuVV+BJG+tIOMf1L+6cExk 7rzMb87uWuyN5uX3SxurjAWFM32xM6sK2SX60i5aAksQu1pKZV95kFtXdYxGrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=277e5da4c511b41bf9845e4d1144a8fe2311dee4 commit 277e5da4c511b41bf9845e4d1144a8fe2311dee4 Author: Cy Schubert AuthorDate: 2021-12-11 04:51:01 +0000 Commit: Cy Schubert CommitDate: 2021-12-14 01:14:28 +0000 ipfilter printfieldhdr: remove set-but-not-unused vars (cherry picked from commit edcdd4f6445ad50c8f7c6e974d0216c5be9356d5) --- 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++;