[Olsr-dev] [PATCH 08/12] p2pd/NetworkInterfaces: remove unused variable
Ferry Huberts
(spam-protected)
Thu Jun 9 13:42:54 CEST 2011
From: Ferry Huberts <(spam-protected)>
src/NetworkInterfaces.c:413:7: warning: variable ‘nOpened’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/p2pd/src/NetworkInterfaces.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/p2pd/src/NetworkInterfaces.c b/lib/p2pd/src/NetworkInterfaces.c
index fa59d56..6650134 100644
--- a/lib/p2pd/src/NetworkInterfaces.c
+++ b/lib/p2pd/src/NetworkInterfaces.c
@@ -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 */
--
1.7.5.2
More information about the Olsr-dev
mailing list