]> git.proxmox.com Git - mirror_frr.git/commitdiff
babeld: remove useless variable, make local another.
authorMatthieu Boutier <boutier@pps.jussieu.fr>
Thu, 19 Jan 2012 21:38:56 +0000 (22:38 +0100)
committerPaul Jakma <paul@quagga.net>
Sun, 25 Mar 2012 16:06:52 +0000 (17:06 +0100)
babeld/babel_main.c
babeld/babel_main.h

index b7fffc1fed51b6b4abf4f4acb6fa7bbd35993d77..159ba656592c651d069b2c1bafda9381747d418c 100644 (file)
@@ -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;
index a21a52747a1778300650a72daec1848992d80d7e..fb22c58e2a884dcffe683474da36306a6314dd11 100644 (file)
@@ -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];