Module Name:    src
Committed By:   lukem
Date:           Sun Apr 19 01:53:17 UTC 2009

Modified Files:
        src/usr.sbin/wlanctl: wlanctl.c

Log Message:
Fix WARNS=4 issues (-Wextra -Wsign-compare)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/wlanctl/wlanctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/wlanctl/wlanctl.c
diff -u src/usr.sbin/wlanctl/wlanctl.c:1.10 src/usr.sbin/wlanctl/wlanctl.c:1.11
--- src/usr.sbin/wlanctl/wlanctl.c:1.10	Sat Dec 22 00:58:15 2007
+++ src/usr.sbin/wlanctl/wlanctl.c	Sun Apr 19 01:53:17 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: wlanctl.c,v 1.10 2007/12/22 00:58:15 dyoung Exp $ */
+/* $NetBSD: wlanctl.c,v 1.11 2009/04/19 01:53:17 lukem Exp $ */
 /*-
  * Copyright (c) 2005 David Young.  All rights reserved.
  *
@@ -98,7 +98,7 @@
 static void
 print_flags(u_int32_t flags, const struct flagname *flagnames, u_int nname)
 {
-	int i;
+	u_int i;
 	const char *delim;
 	delim = "<";
 
@@ -115,7 +115,7 @@
 static void
 print_node_flags(u_int32_t flags)
 {
-	const static struct flagname nodeflags[] = {
+	static const struct flagname nodeflags[] = {
 		  {IEEE80211_NODE_SYSCTL_F_BSS, "bss"}
 		, {IEEE80211_NODE_SYSCTL_F_STA, "sta"}
 		, {IEEE80211_NODE_SYSCTL_F_SCAN, "scan"}
@@ -128,7 +128,7 @@
 static void
 print_capinfo(u_int16_t capinfo)
 {
-	const static struct flagname capflags[] = {
+	static const struct flagname capflags[] = {
 		{IEEE80211_CAPINFO_ESS, "ess"},
 		{IEEE80211_CAPINFO_IBSS, "ibss"},
 		{IEEE80211_CAPINFO_CF_POLLABLE, "cf pollable"},
@@ -158,7 +158,7 @@
 static void
 print_channel(u_int16_t chanidx, u_int16_t freq, u_int16_t flags)
 {
-	const static struct flagname chanflags[] = {
+	static const struct flagname chanflags[] = {
 		{IEEE80211_CHAN_TURBO, "turbo"},
 		{IEEE80211_CHAN_CCK, "cck"},
 		{IEEE80211_CHAN_OFDM, "ofdm"},

Reply via email to