From 33672eddf14c5b619fc38975d4c1f2888189cbc8 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Fri, 27 Apr 2007 18:03:11 +0000 Subject: [ripd, ripngd] Remove useless code in rip_vty_out_uptime function 2007-04-27 Andrew J. Schorr * ripd/ripd.c: (rip_vty_out_uptime) Remove unused variable timer_now. * ripngd/ripngd.c: (ripng_vty_out_uptime) Remove unused variable timer_now. --- ripd/ripd.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'ripd/ripd.c') 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); -- cgit v1.2.1