diff options
author | ajs <ajs> | 2007-04-27 18:03:11 +0000 |
---|---|---|
committer | ajs <ajs> | 2007-04-27 18:03:11 +0000 |
commit | c712f8941274f15fc575a7a784ced7f78787858f (patch) | |
tree | 96c770c57645b86c808262a7c1fea73cc8f4de00 | |
parent | 0742120b03e099e4cf1c9d918beff55ca6f857ad (diff) | |
download | quagga-c712f8941274f15fc575a7a784ced7f78787858f.tar.bz2 quagga-c712f8941274f15fc575a7a784ced7f78787858f.tar.xz |
[ripd, ripngd] Remove useless code in rip_vty_out_uptime function
2007-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ripd/ripd.c: (rip_vty_out_uptime) Remove unused variable timer_now.
* ripngd/ripngd.c: (ripng_vty_out_uptime) Remove unused variable
timer_now.
-rw-r--r-- | ripd/ChangeLog | 4 | ||||
-rw-r--r-- | ripd/ripd.c | 3 | ||||
-rw-r--r-- | ripngd/ChangeLog | 4 | ||||
-rw-r--r-- | ripngd/ripngd.c | 3 |
4 files changed, 8 insertions, 6 deletions
diff --git a/ripd/ChangeLog b/ripd/ChangeLog index 066c5271..cb24e269 100644 --- a/ripd/ChangeLog +++ b/ripd/ChangeLog @@ -1,3 +1,7 @@ +2007-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + + * ripd.c: (rip_vty_out_uptime) Remove unused variable timer_now. + 2007-04-11 Emmanuel Vize <emmanuel.vize@6wind.com> * ripd.c: (rip_vty_out_uptime) Use new thread_timer_remain_second diff --git a/ripd/ripd.c b/ripd/ripd.c index fb5b1777..7c463d50 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -3378,15 +3378,12 @@ DEFUN (no_rip_distance_source_access_list, static void rip_vty_out_uptime (struct vty *vty, struct rip_info *rinfo) { - struct timeval timer_now; time_t clock; struct tm *tm; #define TIME_BUF 25 char timebuf [TIME_BUF]; struct thread *thread; - gettimeofday (&timer_now, NULL); - if ((thread = rinfo->t_timeout) != NULL) { clock = thread_timer_remain_second (thread); diff --git a/ripngd/ChangeLog b/ripngd/ChangeLog index 2ad753ab..b8c24c6a 100644 --- a/ripngd/ChangeLog +++ b/ripngd/ChangeLog @@ -1,3 +1,7 @@ +2007-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + + * ripngd.c: (ripng_vty_out_uptime) Remove unused variable timer_now. + 2007-04-12 Emmanuel Vize <emmanuel.vize@6wind.com> * ripngd.c: (ripng_vty_out_uptime and show_ipv6_ripng_status) diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 13a874a4..a8277fe2 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -1927,15 +1927,12 @@ ripng_event (enum ripng_event event, int sock) static void ripng_vty_out_uptime (struct vty *vty, struct ripng_info *rinfo) { - struct timeval timer_now; time_t clock; struct tm *tm; #define TIME_BUF 25 char timebuf [TIME_BUF]; struct thread *thread; - gettimeofday (&timer_now, NULL); - if ((thread = rinfo->t_timeout) != NULL) { clock = thread_timer_remain_second (thread); |