From nobody Tue Dec 14 01:22:10 2021 X-Original-To: dev-commits-src-branches@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 8376618D937F; Tue, 14 Dec 2021 01:22:13 +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 4JCgb746lPz4sPf; Tue, 14 Dec 2021 01:22:11 +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 3B54B1F3CA; Tue, 14 Dec 2021 01:22:10 +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 1BE1MAd8065071; Tue, 14 Dec 2021 01:22:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BE1MA1a065070; Tue, 14 Dec 2021 01:22:10 GMT (envelope-from git) Date: Tue, 14 Dec 2021 01:22:10 GMT Message-Id: <202112140122.1BE1MA1a065070@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: 9887997e7756 - stable/12 - ipft_pc: remove set-but-not-unused vars List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: 9887997e775602607a778f50f545982944b0618b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639444932; 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=zJUrgi1XDsxrUCioAVqUFoQ8SNe3iIlWu4c9Ulv4hIk=; b=H5rPSqZLUyiwDapPDnqFM0DcD8RFb0glq92CbeXPCBbdCCUFfZksK3oim5xmkKlWvisiJW r2J1ZK2t60dCwTMGyV7wnNTYYlfX7KnBfrgDrBKDW2sbVWmdQBNjQYCPkJjnY9+NTIHr7a X5y2HvF2S8y5IoWiZRY27/dVOI8cZRiUFMFCFtxNsfW4tvGv+ZOeQHFJn1E+e77HjqkVZt 5QH8SotpvAzryjnFl2j3PQ6Y9c+Gf7E6MucQBflzUshYqPl90hztsBN77fIG8xHjkWnrnO RiH49Zhm9PZ2uzY59h2SlGK6NZDroEusrxTaM2jIGmghpDPYuUFgVD+cb/YPxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639444932; a=rsa-sha256; cv=none; b=IkPbxpElWUft35a6h7YCUz7CT0qjt8UgS5HOnT2KehJspYpjLdpHSLYNrsYMAgD0U+4dFc Rh+y4dI1Y4eQlPSBNM0ZFvYj3jaT20Qr6b8SfBe2APoVK4mlFhxkaZH7Q3GCmo4sh36aJr 9PapFOUwenYAwtMkivCXwkc7d/kizSUFCnc1yQeXi2j68SbXkd69A5pbHwm2N/0Hcn4M9w XNlE4nZ+ulQ563FLFeSy6D2P2KcrSZIP/2G7HiwoZo7Tb1k1f0+Pwaw95D/K8noj3HskyX QIA62MVjU3EVJceNdHlrYfQwtRIthLxM53Duj/i1q35LziauiKa1YCQiQTVlXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=9887997e775602607a778f50f545982944b0618b commit 9887997e775602607a778f50f545982944b0618b Author: Cy Schubert AuthorDate: 2021-12-11 04:48:17 +0000 Commit: Cy Schubert CommitDate: 2021-12-14 01:19:23 +0000 ipft_pc: remove set-but-not-unused vars (cherry picked from commit 712b938661f98a66180832632550060c7ba387df) --- contrib/ipfilter/lib/ipft_pc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/contrib/ipfilter/lib/ipft_pc.c b/contrib/ipfilter/lib/ipft_pc.c index bd0c752c392f..65eee078bd06 100644 --- a/contrib/ipfilter/lib/ipft_pc.c +++ b/contrib/ipfilter/lib/ipft_pc.c @@ -138,16 +138,13 @@ static int ipcap_read_rec(rec) packetheader_t *rec; { int n, p, i; - char *s; - s = (char *)rec; n = sizeof(*rec); while (n > 0) { i = read(pfd, (char *)rec, sizeof(*rec)); if (i <= 0) return -2; - s += i; n -= i; }