Date: Tue, 22 Mar 2022 18:53:54 GMT From: Piotr Pawel Stefaniak <pstef@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: b8c245922807 - stable/13 - ndiscvt: remove set but not used variable Message-ID: <202203221853.22MIrsgF099759@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by pstef: URL: https://cgit.FreeBSD.org/src/commit/?id=b8c245922807d9b5cfd1817a77f1ca462b76e586 commit b8c245922807d9b5cfd1817a77f1ca462b76e586 Author: Piotr Pawel Stefaniak <pstef@FreeBSD.org> AuthorDate: 2022-03-17 22:05:45 +0000 Commit: Piotr Pawel Stefaniak <pstef@FreeBSD.org> CommitDate: 2022-03-22 18:14:21 +0000 ndiscvt: remove set but not used variable This is a direct commit since ndiscvt has been removed from main. --- usr.sbin/ndiscvt/ndiscvt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/ndiscvt/ndiscvt.c b/usr.sbin/ndiscvt/ndiscvt.c index 1b7660700786..1c1a5d267b1d 100644 --- a/usr.sbin/ndiscvt/ndiscvt.c +++ b/usr.sbin/ndiscvt/ndiscvt.c @@ -100,7 +100,7 @@ insert_padding(void **imgbase, int *imglen) image_dos_header *dos_hdr; image_nt_header *nt_hdr; image_optional_header opt_hdr; - int i = 0, sections, curlen = 0; + int i = 0, sections; int offaccum = 0, oldraddr, oldrlen; uint8_t *newimg, *tmp; @@ -110,7 +110,6 @@ insert_padding(void **imgbase, int *imglen) return(ENOMEM); bcopy(*imgbase, newimg, *imglen); - curlen = *imglen; if (pe_get_optional_header((vm_offset_t)newimg, &opt_hdr)) return(0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203221853.22MIrsgF099759>