p2pd/NetworkInterfaces: remove unused variable
authorFerry Huberts <f.huberts@mindef.nl>
Thu, 9 Jun 2011 11:05:23 +0000 (13:05 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Thu, 9 Jun 2011 14:35:52 +0000 (16:35 +0200)
src/NetworkInterfaces.c:413:7: warning: variable ‘nOpened’ set but not used [-Wunused-but-set-variable]

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

index fa59d56..6650134 100644 (file)
@@ -410,11 +410,11 @@ CreateNonOlsrNetworkInterfaces(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 */