1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

[athdebug] Fix warnings generated by gcc on mips

* commented out currently unused/dead code; need to see what it was once
  used for
* remove unused variable
* fix typing
This commit is contained in:
Adrian Chadd 2020-10-13 18:35:43 +00:00
parent 42360f5c5b
commit 8de51ca4f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366679

View File

@ -112,7 +112,7 @@ static struct {
static uint64_t
getflag(const char *name, int len)
{
int i;
unsigned int i;
for (i = 0; i < nitems(flags); i++)
if (strncasecmp(flags[i].name, name, len) == 0)
@ -120,6 +120,7 @@ getflag(const char *name, int len)
return 0;
}
#if 0
static const char *
getflagname(u_int flag)
{
@ -130,11 +131,12 @@ getflagname(u_int flag)
return flags[i].name;
return "???";
}
#endif
static void
usage(void)
{
int i;
unsigned int i;
fprintf(stderr, "usage: %s [-i device] [flags]\n", progname);
fprintf(stderr, "where flags are:\n");
@ -149,7 +151,8 @@ main(int argc, char *argv[])
const char *ifname;
const char *cp, *tp;
const char *sep;
int c, op, i;
int op;
unsigned int i;
uint64_t debug, ndebug;
size_t debuglen;
char oid[256];