Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/stand/bootblock/elf2bb Remove some unused var...



details:   https://anonhg.NetBSD.org/src/rev/de46447a8ae7
branches:  trunk
changeset: 379198:de46447a8ae7
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 18 20:34:20 2021 +0000

description:
Remove some unused variables, found by gcc -Wall.

diffstat:

 sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 0b09d5634048 -r de46447a8ae7 sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
--- a/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c    Tue May 18 20:32:18 2021 +0000
+++ b/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c    Tue May 18 20:34:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2bb.c,v 1.19 2021/05/18 20:32:18 dholland Exp $     */
+/*     $NetBSD: elf2bb.c,v 1.20 2021/05/18 20:34:20 dholland Exp $     */
 
 /*-
  * Copyright (c) 1996,2006 The NetBSD Foundation, Inc.
@@ -92,7 +92,6 @@ int
 main(int argc, char *argv[])
 {
        int ifd, ofd;
-       u_int mid, flags, magic;
        void *image;
        Elf32_Ehdr *eh;
        Elf32_Shdr *sh;
@@ -104,7 +103,7 @@ main(int argc, char *argv[])
        int i, l, delta;
        u_int8_t *rpo;
        u_int32_t oldaddr, addrdiff;
-       u_int32_t tsz, dsz, bsz, trsz, drsz, entry, relver;
+       u_int32_t tsz, dsz, bsz, trsz, relver;
        u_int32_t pcrelsz, r32sz;
        int sumsize = 16;
        int c;



Home | Main Index | Thread Index | Old Index