diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-04-27 18:03:11 +0000 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-04-27 18:03:11 +0000 |
commit | 33672eddf14c5b619fc38975d4c1f2888189cbc8 (patch) | |
tree | 6f3d5d1bf2cf861d573db6711ce849b27d3b8b8f /ripngd/ripngd.c | |
parent | e8a56f02ee52a0a4f06440f4dfef86a21e6ce5c1 (diff) |
[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.
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r-- | ripngd/ripngd.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |