[Olsr-dev] [PATCH 07/12] nameservice: remove unused variable

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


From: Ferry Huberts <(spam-protected)>

src/nameservice.c:658:12: warning: variable ‘seqno’ set but not used [-Wunused-but-set-variable]

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

diff --git a/lib/nameservice/src/nameservice.c b/lib/nameservice/src/nameservice.c
index 734ec6d..d309c87 100644
--- a/lib/nameservice/src/nameservice.c
+++ b/lib/nameservice/src/nameservice.c
@@ -655,7 +655,6 @@ olsr_parser(union olsr_message *m, struct interface *in_if __attribute__ ((unuse
   union olsr_ip_addr originator;
   olsr_reltime vtime;
   int size;
-  uint16_t seqno;
 
   if (!nameservice_configured) {
     name_lazy_init();
@@ -667,10 +666,8 @@ olsr_parser(union olsr_message *m, struct interface *in_if __attribute__ ((unuse
   /* Fetch the originator of the messsage */
   if (olsr_cnf->ip_version == AF_INET) {
     memcpy(&originator, &m->v4.originator, olsr_cnf->ipsize);
-    seqno = ntohs(m->v4.seqno);
   } else {
     memcpy(&originator, &m->v6.originator, olsr_cnf->ipsize);
-    seqno = ntohs(m->v6.seqno);
   }
 
   /* Fetch the message based on IP version */
-- 
1.7.5.2





More information about the Olsr-dev mailing list