[Olsr-dev] [olsrd] [PATCH v1 18/29] gateway: remove some unused code in refresh_smartgw_netmask

Ferry Huberts (spam-protected)
Tue Jul 24 18:09:07 CEST 2012


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/gateway.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gateway.c b/src/gateway.c
index 6538891..6b6a61e 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -100,9 +100,6 @@ static void refresh_smartgw_netmask(void) {
   memset(&smart_gateway_netmask, 0, sizeof(smart_gateway_netmask));
 
   if (olsr_cnf->smart_gw_active) {
-    union olsr_ip_addr gw_net;
-    memset(&gw_net, 0, sizeof(gw_net));
-
     ip = (uint8_t *) &smart_gateway_netmask;
 
     if (olsr_cnf->smart_gw_uplink > 0 && olsr_cnf->smart_gw_downlink > 0) {
-- 
1.7.10.4





More information about the Olsr-dev mailing list