]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Remove dead variable reboot_time.
authorJuliusz Chroboczek <jch@pps.jussieu.fr>
Sat, 11 Feb 2012 16:48:05 +0000 (17:48 +0100)
committerPaul Jakma <paul@quagga.net>
Sun, 25 Mar 2012 16:06:54 +0000 (17:06 +0100)
Thanks to Denis Ovsienko.

babeld/babel_main.c

index e57649429a8db2a31c9f0bfe88b76c48feaf7816..4cb2d83e38a60e159da9ad365d8db1031e5f04f5 100644 (file)
@@ -379,8 +379,6 @@ babel_replace_by_null(int fd)
 void
 babel_load_state_file(void)
 {
-    time_t reboot_time;
-    reboot_time = babel_now.tv_sec;
     int fd;
     int rc;
 
@@ -422,9 +420,6 @@ babel_load_state_file(void)
                         zlog_err("ID mismatch in babel-state. id=%s; old=%s",
                                  format_eui64(myid),
                                  format_eui64(sid));
-                    /* Convert realtime into monotonic time. */
-                    if(t >= 1176800000L && t <= realnow.tv_sec)
-                        reboot_time = babel_now.tv_sec - (realnow.tv_sec - t);
                 }
             } else {
                 zlog_err("Couldn't parse babel-state.");