[Zrouter-src] ZRouter.org: push to zconf++ zconf++/platform/bsd_interfaces.cc

zrouter-src at zrouter.org zrouter-src at zrouter.org
Mon Jan 23 17:24:01 UTC 2012


details:   /rev/56b8890d8ce3
changeset: 47:56b8890d8ce3
user:      "Nicolai Petri <nicolai at petri.dk>"
date:      Mon Jan 23 18:20:33 2012 +0100
description:
Remove unused variables.

diffstat:

 zconf++/platform/bsd_interfaces.cc |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r df20c5ba650c -r 56b8890d8ce3 zconf++/platform/bsd_interfaces.cc
--- a/zconf++/platform/bsd_interfaces.cc	Mon Jan 23 18:20:09 2012 +0100
+++ b/zconf++/platform/bsd_interfaces.cc	Mon Jan 23 18:20:33 2012 +0100
@@ -106,12 +106,11 @@
 	struct ifreq paifr;
 	const char *ifname;
 	char *cp;
-	int ifindex;
 
 	if (getifaddrs(&ifap) != 0)
 		err(EXIT_FAILURE, "getifaddrs");
 	cp = NULL;
-	ifindex = 0;
+
 	for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
 		memset(&paifr, 0, sizeof(paifr));
 		strncpy(paifr.ifr_name, ifa->ifa_name, sizeof(paifr.ifr_name));


More information about the Zrouter-src mailing list