git: b8c245922807 - stable/13 - ndiscvt: remove set but not used variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Mar 2022 18:53:54 UTC
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);