summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d331c82)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
//
void cluster_check_master(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;
int last_free = 0;
clockt t = TIME;
static int probed = 0;
// Count the highest used tunnel number as well.
//
config->cluster_highest_tunnelid = 0;
// 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;
if (tunnel[i].state == TUNNELUNDEF)
tunnel[i].state = TUNNELFREE;
// Count the highest used bundle number as well.
//
config->cluster_highest_bundleid = 0;
// 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;
if (bundle[i].state == BUNDLEUNDEF)
bundle[i].state = BUNDLEFREE;
{
sessiont *sp;
tunnelidt t;
{
sessiont *sp;
tunnelidt t;
uint8_t b[MAXETHER + 20];
uint8_t b[MAXETHER + 20];
- ip = *(in_addr_t *)(buf + 16);
-
if (!session[s].ip)
return;
if (!session[s].ip)
return;