mdns/NetworkInterfaces: remove unused variable
authorFerry Huberts <f.huberts@mindef.nl>
Thu, 9 Jun 2011 08:41:43 +0000 (10:41 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Thu, 9 Jun 2011 14:35:52 +0000 (16:35 +0200)
src/NetworkInterfaces.c:424:7: warning: variable ‘nOpened’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/mdns/src/NetworkInterfaces.c

index ad3deae..512dd5f 100644 (file)
@@ -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 */