gateway: remove an unused variable in olsr_update_gateway_entry
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 24 Jul 2012 15:32:39 +0000 (17:32 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Jul 2012 06:55:06 +0000 (08:55 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index a29dfd3..041d2f6 100644 (file)
@@ -287,9 +287,7 @@ olsr_update_gateway_entry(union olsr_ip_addr *originator, union olsr_ip_addr *ma
   uint8_t *ptr = OLSR_IP_ADDR_2_HNA_PTR(mask, prefixlen);
 
   if (!gw) {
-    struct ipaddr_str buf;
     gw = olsr_cookie_malloc(gw_mem_cookie);
-
     gw->originator = *originator;
     gw->node.key = &gw->originator;