Quiet compiler warnings by making `WARNS 2' clean.
Submitted by: Mike Barcroft <mike@q9media.com> Set maintainer to myself. This needs to stay in sync with what Buntils does, and it would be best to pass functionality changes thru me to make sure future plans are taken into account.
This commit is contained in:
parent
22e22d2765
commit
b0b7095861
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78627
@ -1,6 +1,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
MAINTAINER= obrien
|
||||
|
||||
PROG= brandelf
|
||||
CFLAGS+= -Wall
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001 David O'Brien
|
||||
* Copyright (c) 1996 Søren Schmidt
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -170,14 +171,14 @@ fprintf(stderr, "usage: brandelf [-f ELF ABI number] [-v] [-l] [-t string] file
|
||||
}
|
||||
|
||||
static const char *
|
||||
iselftype(int elftype)
|
||||
iselftype(int etype)
|
||||
{
|
||||
int elfwalk;
|
||||
size_t elfwalk;
|
||||
|
||||
for (elfwalk = 0;
|
||||
elfwalk < sizeof(elftypes)/sizeof(elftypes[0]);
|
||||
elfwalk++)
|
||||
if (elftype == elftypes[elfwalk].value)
|
||||
if (etype == elftypes[elfwalk].value)
|
||||
return elftypes[elfwalk].str;
|
||||
return 0;
|
||||
}
|
||||
@ -185,7 +186,7 @@ iselftype(int elftype)
|
||||
static int
|
||||
elftype(const char *elfstrtype)
|
||||
{
|
||||
int elfwalk;
|
||||
size_t elfwalk;
|
||||
|
||||
for (elfwalk = 0;
|
||||
elfwalk < sizeof(elftypes)/sizeof(elftypes[0]);
|
||||
@ -198,7 +199,7 @@ elftype(const char *elfstrtype)
|
||||
static void
|
||||
printelftypes()
|
||||
{
|
||||
int elfwalk;
|
||||
size_t elfwalk;
|
||||
|
||||
fprintf(stderr, "known ELF types are: ");
|
||||
for (elfwalk = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user