[Olsr-dev] [PATCH 10/12] olsrd_txtinfo: remove unused variable

Ferry Huberts (spam-protected)
Thu Jun 9 13:42:56 CEST 2011


From: Ferry Huberts <(spam-protected)>

src/olsrd_txtinfo.c:450:7: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/txtinfo/src/olsrd_txtinfo.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index 9bf0f14..5ca962f 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -447,14 +447,11 @@ ipc_print_topology(struct autobuf *abuf)
 static void
 ipc_print_hna(struct autobuf *abuf)
 {
-  int size;
   struct ip_prefix_list *hna;
   struct hna_entry *tmp_hna;
   struct hna_net *tmp_net;
   struct ipaddr_str buf, mainaddrbuf;
 
-  size = 0;
-
 #ifdef ACTIVATE_VTIME_TXTINFO
   abuf_puts(abuf, "Table: HNA\nDestination\tGateway\tVTime\n");
 #else
-- 
1.7.5.2





More information about the Olsr-dev mailing list