Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 2021 05:53:12 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9018f7fa45c0 - main - ipft_tx: remove set-but-not-unused vars
Message-ID:  <202112110553.1BB5rC0o059226@gitrepo.freebsd.org>

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

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

commit 9018f7fa45c0bc66cfdd4496e695218be3d37a33
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-11 04:49:22 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-12-11 05:52:54 +0000

    ipft_tx: remove set-but-not-unused vars
    
    MFC after:      3 days
---
 contrib/ipfilter/lib/ipft_tx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/contrib/ipfilter/lib/ipft_tx.c b/contrib/ipfilter/lib/ipft_tx.c
index 49d7cb2b8c5c..3499afedf854 100644
--- a/contrib/ipfilter/lib/ipft_tx.c
+++ b/contrib/ipfilter/lib/ipft_tx.c
@@ -122,10 +122,8 @@ static	int	text_readip(mb, ifn, dir)
 	char	line[513];
 	ip_t	*ip;
 	char	*buf;
-	int	cnt;
 
 	buf = (char *)mb->mb_buf;
-	cnt = sizeof(mb->mb_buf);
 
 	*ifn = NULL;
 	while (fgets(line, sizeof(line)-1, tfp)) {



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