diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-31 08:26:58 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-31 08:26:58 +0200 |
commit | b506a1cb52337b94c56dd044331669ebb9723246 (patch) | |
tree | 9f34777466edca64a7f24f8c470dfce9c0572f0a /src | |
parent | d3e11f79927ee19deef5a264788e8298c7868bd0 (diff) | |
download | fastd-b506a1cb52337b94c56dd044331669ebb9723246.tar fastd-b506a1cb52337b94c56dd044331669ebb9723246.zip |
dump_state(): used unsigned instead of size_t to ensure correct variadic function call
Diffstat (limited to 'src')
-rw-r--r-- | src/fastd.c | 3 |
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++; |