From nobody Tue Dec 14 01:20:57 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 4237818D797B; 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 4JCgYk63CPz4rY1; Tue, 14 Dec 2021 01:20:58 +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 035B31EFBF; Tue, 14 Dec 2021 01:20:57 +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 1BE1Kv1L060787; Tue, 14 Dec 2021 01:20:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BE1Kvfb060786; Tue, 14 Dec 2021 01:20:57 GMT (envelope-from git) Date: Tue, 14 Dec 2021 01:20:57 GMT Message-Id: <202112140120.1BE1Kvfb060786@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: d1dc55598446 - stable/13 - ipft_pc: 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: d1dc555984463e2e257a49c0f5577bb0e877c0e1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639444858; 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=+ncZAtXIzas+lP03ROmzYcypgHNdZ+7WQNMQBu9sAag=; b=RCWfMS3NDPl2MCoynCZtmhyVYQ03pnq3N9ZXy/cc16jTnNtWLXklL67PlnYBfxIHhvatQA 5Y9XObDfUinM/PISc8HcVSqN/ElxuKeRFmfxnf3tOKcDaRQ5UZkl1gVg9+wb3ehhg59RcC 6e1jqsXpgCeTX7m+TFRD122udc/IDFbzNL8NV2pn/b3o53Mv00UlAGROOatCencc1tjzez PlKNEqCSqpgKcJHj4Zho4u5A9JbjsjcnvZ4kSF70SO0+NP4kIuUsezKlfd+iATetmckof1 NK4TdCMRq0pzTcTnUI3qU8cWOakugBAe0M09vIo0d6QNtPu4Kq3PjfCzXHAwoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639444858; a=rsa-sha256; cv=none; b=SiDmsZpnJvy+hvK2dNyy50Avm3+2mDoX3peSxciwcL7rS1tua8IyxMK/xKH4SQQdbnsv4/ r3TqGaHF0ccAXDy9Qj2V7/sgXsn3u8++lotNoPV/6qGzo3cwBZK6eR5FqOoQlLJ/W7TU1S 7pBqhEGorRP6/yd+Z7pDE/nwECZT39Dr95WEOe3WTwLnZ3lTeegZgfyaExWu5HKFDG0B/3 5NmJcOLui6H9yU9aaaqhqhzouolT/JHoWuQgP62hkvqLWIXnTczbrzifS5SXRnkoHwlAtG Fyeiw8CQwBTKHPsFIDe0pVQF3ucLqJPC34cabE1Siog3OWHDAylpx+4JnDj3Bw== 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=d1dc555984463e2e257a49c0f5577bb0e877c0e1 commit d1dc555984463e2e257a49c0f5577bb0e877c0e1 Author: Cy Schubert AuthorDate: 2021-12-11 04:48:17 +0000 Commit: Cy Schubert CommitDate: 2021-12-14 01:13:33 +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; }