From cb98cbc593309d4781dfb873b018a5d4e12ad118 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 1 Nov 2012 15:11:40 +0100 Subject: Dynamically create and destroy sockets without fixed binds --- src/config.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index b0f4754..228951e 100644 --- a/src/config.c +++ b/src/config.c @@ -434,7 +434,6 @@ bool fastd_read_config(fastd_context *ctx, fastd_config *conf, const char *filen } static void count_peers(fastd_context *ctx, fastd_config *conf) { - conf->n_peers = 0; conf->n_floating = 0; conf->n_v4 = 0; conf->n_v6 = 0; @@ -444,8 +443,6 @@ static void count_peers(fastd_context *ctx, fastd_config *conf) { fastd_peer_config *peer; for (peer = conf->peers; peer; peer = peer->next) { - conf->n_peers++; - switch (peer->address.sa.sa_family) { case AF_UNSPEC: if (peer->hostname) -- cgit v1.2.3