INN commit: trunk (backends/ninpaths.c tests/lib/network/addr-ipv4-t.c)
INN Commit
rra at isc.org
Sat Jul 1 19:58:26 UTC 2017
Date: Saturday, July 1, 2017 @ 12:58:26
Author: iulius
Revision: 10154
Fix gcc warnings about unused variables
Modified:
trunk/backends/ninpaths.c
trunk/tests/lib/network/addr-ipv4-t.c
---------------------------------+
backends/ninpaths.c | 9 ++++++++-
tests/lib/network/addr-ipv4-t.c | 5 ++++-
2 files changed, 12 insertions(+), 2 deletions(-)
Modified: backends/ninpaths.c
===================================================================
--- backends/ninpaths.c 2017-06-05 12:28:01 UTC (rev 10153)
+++ backends/ninpaths.c 2017-07-01 19:58:26 UTC (rev 10154)
@@ -407,12 +407,15 @@
{
double avgAge;
int i, columns, needHost;
- long nhosts=0, nlinks=0;
struct nrec *list, *relay;
struct trec *rlist;
char hostString[MAXHOST];
time_t t0=time(0);
+#ifdef DEBUG
+ long nhosts=0, nlinks=0;
+#endif
+
if (!total) {
fprintf(stderr, "report: no traffic\n");
return;
@@ -466,13 +469,17 @@
}
}
rlist = rlist->rlink;
+#ifdef DEBUG
++nlinks;
+#endif
}
if (!needHost) printf("\n");
}
}
list = list->link;
+#ifdef DEBUG
++nhosts;
+#endif
}
}
printf("ZCZC end inpaths %s\n",hostname);
Modified: tests/lib/network/addr-ipv4-t.c
===================================================================
--- tests/lib/network/addr-ipv4-t.c 2017-06-05 12:28:01 UTC (rev 10153)
+++ tests/lib/network/addr-ipv4-t.c 2017-07-01 19:58:26 UTC (rev 10154)
@@ -58,8 +58,11 @@
int
main(void)
{
- int flag, status;
+#ifdef SO_REUSEADDR
+ int flag;
socklen_t flaglen;
+#endif
+ int status;
struct addrinfo *ai, *ai2;
struct addrinfo hints;
char addr[INET6_ADDRSTRLEN];
More information about the inn-committers
mailing list