Author: eadler (ports committer)
Date: Tue Jan 10 02:59:18 2012
New Revision: 229914
URL: http://svn.freebsd.org/changeset/base/229914

Log:
  Fix warning when compiling with gcc46:
        error: variable 'firstkey' set but not used
  
  Approved by:  dim
  MFC after:    3 days

Modified:
  head/sbin/ifconfig/ifieee80211.c

Modified: head/sbin/ifconfig/ifieee80211.c
==============================================================================
--- head/sbin/ifconfig/ifieee80211.c    Tue Jan 10 02:59:09 2012        
(r229913)
+++ head/sbin/ifconfig/ifieee80211.c    Tue Jan 10 02:59:18 2012        
(r229914)
@@ -4383,7 +4383,6 @@ ieee80211_status(int s)
 
        if (get80211val(s, IEEE80211_IOC_WEP, &wepmode) != -1 &&
            wepmode != IEEE80211_WEP_NOSUP) {
-               int firstkey;
 
                switch (wepmode) {
                case IEEE80211_WEP_OFF:
@@ -4419,7 +4418,6 @@ ieee80211_status(int s)
                        goto end;
                }
 
-               firstkey = 1;
                for (i = 0; i < num; i++) {
                        struct ieee80211req_key ik;
 
@@ -4433,7 +4431,6 @@ ieee80211_status(int s)
                                if (verbose)
                                        LINE_BREAK();
                                printkey(&ik);
-                               firstkey = 0;
                        }
                }
 end:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to