[Olsr-dev] [PATCH 05/12] mdns/NetworkInterfaces: remove unused variable

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


From: Ferry Huberts <(spam-protected)>

src/NetworkInterfaces.c:424:7: warning: variable ‘nOpened’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/mdns/src/NetworkInterfaces.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/mdns/src/NetworkInterfaces.c b/lib/mdns/src/NetworkInterfaces.c
index ad3deae..512dd5f 100644
--- a/lib/mdns/src/NetworkInterfaces.c
+++ b/lib/mdns/src/NetworkInterfaces.c
@@ -421,11 +421,11 @@ CreateBmfNetworkInterfaces(struct interface *skipThisIntf)
 void
 AddInterface(struct interface *newIntf)
 {
-  int nOpened;
+  /* int nOpened; */
 
   assert(newIntf != NULL);
 
-  nOpened = CreateInterface(newIntf->int_name, newIntf);
+  /* nOpened = */ (void)CreateInterface(newIntf->int_name, newIntf);
 
   //OLSR_PRINTF(1, "%s: opened %d sockets\n", PLUGIN_NAME, nOpened);
 }                               /* AddInterface */
-- 
1.7.5.2





More information about the Olsr-dev mailing list