summaryrefslogtreecommitdiff
path: root/babeld
diff options
context:
space:
mode:
authorMatthieu Boutier <boutier@pps.jussieu.fr>2012-01-19 22:38:56 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:52 +0100
commitb5d43c939476b49106b1ab80b61609aba43c915d (patch)
tree6f5cf39088c98a114b0ccadc3a65f3dd848a222c /babeld
parent2236df03898f82e627f865e11157a5e08dd2e4ba (diff)
babeld: remove useless variable, make local another.
Diffstat (limited to 'babeld')
-rw-r--r--babeld/babel_main.c3
-rw-r--r--babeld/babel_main.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/babeld/babel_main.c b/babeld/babel_main.c
index b7fffc1f..159ba656 100644
--- a/babeld/babel_main.c
+++ b/babeld/babel_main.c
@@ -80,9 +80,7 @@ struct timeval babel_now; /* current time */
unsigned char myid[8]; /* unique id (mac address of an interface) */
int debug = BABEL_DEBUG_COMMON;
-time_t reboot_time;
int idle_time = 320;
-int link_detect = 0;
int wireless_hello_interval = -1;
int wired_hello_interval = -1;
int idle_hello_interval = -1;
@@ -385,6 +383,7 @@ babel_replace_by_null(int fd)
static void
babel_load_state_file(void)
{
+ time_t reboot_time;
reboot_time = babel_now.tv_sec;
int fd;
int rc;
diff --git a/babeld/babel_main.h b/babeld/babel_main.h
index a21a5274..fb22c58e 100644
--- a/babeld/babel_main.h
+++ b/babeld/babel_main.h
@@ -43,7 +43,6 @@ extern struct thread_master *master; /* quagga's threads handler */
extern int debug;
extern int wireless_hello_interval, wired_hello_interval, idle_hello_interval;
extern int idle_time;
-extern int link_detect;
extern unsigned char myid[8];