changeset 3127:4f9f16f1fc35

Fix compiler warnings by removing variables that are set but never referenced. [ Bugzilla 1001516 ]
author grante
date Tue, 13 Mar 2012 14:51:03 +0000
parents 96f5931c93e1
children c996de06765a
files packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/ecos/support.c
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog
+++ b/packages/net/bsd_tcpip/current/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-13  Grant Edwards <grant.b.edwards@gmail.com>
+
+	* src/ecos/support.c (_dumpentry, show_network_tables): Fix
+	compiler warnings by removing variables that are set but never
+	referenced. [ Bugzilla 1001516 ]
+
 2012-03-08  Grant Edwards <grant.b.edwards@gmail.com>
 
 	* doc/freebsd.sgml: Add section on how to disable ipv6 support at
--- a/packages/net/bsd_tcpip/current/src/ecos/support.c
+++ b/packages/net/bsd_tcpip/current/src/ecos/support.c
@@ -979,14 +979,13 @@ static int
 _dumpentry(struct radix_node *rn, void *vw)
 {
     struct rtentry *rt = (struct rtentry *)rn;
-    struct sockaddr *dst, *gate, *netmask, *genmask;
+    struct sockaddr *dst, *gate, *netmask;
     char addr[64], *cp;
     pr_fun *pr = (pr_fun *)vw;
 
     dst = rt_key(rt);
     gate = rt->rt_gateway;
     netmask = rt_mask(rt);
-    genmask = rt->rt_genmask;
     if ((rt->rt_flags & (RTF_UP | RTF_WASCLONED)) == RTF_UP) {
         _inet_ntop(dst, addr, sizeof(addr));
         (*pr)("%-15s ", addr);
@@ -1030,7 +1029,7 @@ static int
 void
 show_network_tables(pr_fun *pr)
 {
-    int i, error;
+    int i;
     struct radix_node_head *rnh;
     struct ifnet *ifp;
 
@@ -1039,7 +1038,7 @@ show_network_tables(pr_fun *pr)
     (*pr)("Destination     Gateway         Mask            Flags    Interface\n");
     for (i = 1; i <= AF_MAX; i++) {
         if ((rnh = rt_tables[i]) != NULL) {
-            error = rnh->rnh_walktree(rnh, _dumpentry, pr);
+            rnh->rnh_walktree(rnh, _dumpentry, pr);
         }
     }