summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 08:26:58 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 08:26:58 +0200
commitb506a1cb52337b94c56dd044331669ebb9723246 (patch)
tree9f34777466edca64a7f24f8c470dfce9c0572f0a /src/fastd.c
parentd3e11f79927ee19deef5a264788e8298c7868bd0 (diff)
downloadfastd-b506a1cb52337b94c56dd044331669ebb9723246.tar
fastd-b506a1cb52337b94c56dd044331669ebb9723246.zip
dump_state(): used unsigned instead of size_t to ensure correct variadic function call
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 138731c..1841c42 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -265,7 +265,8 @@ static void dump_state(void) {
}
if (conf.mode == MODE_TAP) {
- size_t j, eth_addresses = 0;
+ unsigned eth_addresses = 0;
+ size_t j;
for (j = 0; j < VECTOR_LEN(ctx.eth_addrs); j++) {
if (VECTOR_INDEX(ctx.eth_addrs, j).peer == peer)
eth_addresses++;