// L2TPNS Clustering Stuff
-char const *cvs_id_cluster = "$Id: cluster.c,v 1.23 2004-12-15 01:04:34 bodea Exp $";
+char const *cvs_id_cluster = "$Id: cluster.c,v 1.24 2004-12-15 02:56:38 bodea Exp $";
#include <stdio.h>
#include <sys/file.h>
kill(0, SIGTERM);
exit(1);
- } else if (h->table_version < config->cluster_table_version) {
- return -1;
}
+ if (h->table_version < config->cluster_table_version)
+ return -1;
}
if (basetime > h->basetime) {
LOG(0, 0, 0, "They're an older master than me so I'm gone!\n");
kill(0, SIGTERM);
exit(1);
- } else if (basetime < h->basetime)
- return -1;
}
+ if (basetime < h->basetime)
+ return -1;
+
if (my_address < addr) { // Tie breaker.
LOG(0, 0, 0, "They're a higher IP address than me, so I'm gone!\n");
kill(0, SIGTERM);