Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2021 01:20:57 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d1dc55598446 - stable/13 - ipft_pc: remove set-but-not-unused vars
Message-ID:  <202112140120.1BE1Kvfb060786@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=d1dc555984463e2e257a49c0f5577bb0e877c0e1

commit d1dc555984463e2e257a49c0f5577bb0e877c0e1
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-11 04:48:17 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112140120.1BE1Kvfb060786>