svn commit: r366679 - head/tools/tools/ath/athdebug

Adrian Chadd adrian at FreeBSD.org
Tue Oct 13 18:35:44 UTC 2020


Author: adrian
Date: Tue Oct 13 18:35:43 2020
New Revision: 366679
URL: https://svnweb.freebsd.org/changeset/base/366679

Log:
  [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

Modified:
  head/tools/tools/ath/athdebug/athdebug.c

Modified: head/tools/tools/ath/athdebug/athdebug.c
==============================================================================
--- head/tools/tools/ath/athdebug/athdebug.c	Tue Oct 13 18:28:48 2020	(r366678)
+++ head/tools/tools/ath/athdebug/athdebug.c	Tue Oct 13 18:35:43 2020	(r366679)
@@ -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];


More information about the svn-src-all mailing list