diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2020-10-13 18:35:43 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2020-10-13 18:35:43 +0000 |
commit | 8de51ca4f933333daa0c2630fae5167bb754a64a (patch) | |
tree | 827ef57d49f9867267f9357655c881dd7b832d0b /tools/tools | |
parent | 42360f5c5b575b3f4098110fc8dfd2f4d11b6481 (diff) | |
download | src-test2-8de51ca4f933333daa0c2630fae5167bb754a64a.tar.gz src-test2-8de51ca4f933333daa0c2630fae5167bb754a64a.zip |
[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
Notes
Notes:
svn path=/head/; revision=366679
Diffstat (limited to 'tools/tools')
-rw-r--r-- | tools/tools/ath/athdebug/athdebug.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/tools/ath/athdebug/athdebug.c b/tools/tools/ath/athdebug/athdebug.c index b28f0432f435..5dba663ecb76 100644 --- a/tools/tools/ath/athdebug/athdebug.c +++ b/tools/tools/ath/athdebug/athdebug.c @@ -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]; |