Author: eadler (ports committer) Date: Tue Jan 10 02:58:36 2012 New Revision: 229909 URL: http://svn.freebsd.org/changeset/base/229909
Log: Fix warning when compiling with gcc46: error: variable 'ifnetfound' set but not used Approved by: dim MFC after: 3 days Modified: head/usr.bin/netstat/if.c Modified: head/usr.bin/netstat/if.c ============================================================================== --- head/usr.bin/netstat/if.c Tue Jan 10 02:58:29 2012 (r229908) +++ head/usr.bin/netstat/if.c Tue Jan 10 02:58:36 2012 (r229909) @@ -188,7 +188,6 @@ intpr(int interval1, u_long ifnetaddr, v } ifaddr; u_long ifaddraddr; u_long ifaddrfound; - u_long ifnetfound; u_long opackets; u_long ipackets; u_long obytes; @@ -249,7 +248,6 @@ intpr(int interval1, u_long ifnetaddr, v link_layer = 0; if (ifaddraddr == 0) { - ifnetfound = ifnetaddr; if (kread(ifnetaddr, (char *)&ifnet, sizeof ifnet) != 0) return; strlcpy(name, ifnet.if_xname, sizeof(name)); _______________________________________________ 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"