X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/d2848cebc450b4d1e66a4b7bf290167f2870b618..92db0e2617cec9b118708c722c1a9f273001f87d:/cluster.c diff --git a/cluster.c b/cluster.c index 66846d6..7b6b33e 100644 --- a/cluster.c +++ b/cluster.c @@ -514,7 +514,7 @@ void cluster_check_slaves(void) // void cluster_check_master(void) { - int i, count, tcount, bcount, high_unique_id = 0; + int i, count, high_unique_id = 0; int last_free = 0; clockt t = TIME; static int probed = 0; @@ -600,7 +600,7 @@ void cluster_check_master(void) // Count the highest used tunnel number as well. // config->cluster_highest_tunnelid = 0; - for (i = 0, tcount = 0; i < MAXTUNNEL; ++i) { + for (i = 0; i < MAXTUNNEL; ++i) { if (tunnel[i].state == TUNNELUNDEF) tunnel[i].state = TUNNELFREE; @@ -613,7 +613,7 @@ void cluster_check_master(void) // Count the highest used bundle number as well. // config->cluster_highest_bundleid = 0; - for (i = 0, bcount = 0; i < MAXBUNDLE; ++i) { + for (i = 0; i < MAXBUNDLE; ++i) { if (bundle[i].state == BUNDLEUNDEF) bundle[i].state = BUNDLEFREE; @@ -1351,10 +1351,10 @@ struct oldsession { uint32_t tx_connect_speed; uint32_t rx_connect_speed; clockt timeout; - uint32_t mrru; - uint8_t mssf; - epdist epdis; - bundleidt bundle; + uint32_t mrru; + uint8_t mssf; + epdist epdis; + bundleidt bundle; in_addr_t snoop_ip; uint16_t snoop_port; uint8_t walled_garden;