From d6ad8a772a1bf03f2df90ca63e8b23e64a9f5f7e Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Fri, 21 Nov 2008 11:44:47 +0100 Subject: lib: Unexport recent_time Exporting a variable is bad practise and since recent_time isn't used, make it static. --- lib/thread.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/thread.c b/lib/thread.c index e89af541..c6ee8964 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -31,7 +31,7 @@ #include "sigevent.h" /* Recent absolute time of day */ -struct timeval recent_time; +static struct timeval recent_time; static struct timeval last_recent_time; /* Relative time, since startup */ static struct timeval relative_time; @@ -1028,14 +1028,6 @@ thread_getrusage (RUSAGE_T *r) getrusage(RUSAGE_SELF, &(r->cpu)); #endif r->real = relative_time; - -#ifdef HAVE_CLOCK_MONOTONIC - /* quagga_get_relative() only updates recent_time if gettimeofday - * based, not when using CLOCK_MONOTONIC. As we export recent_time - * and guarantee to update it before threads are run... - */ - quagga_gettimeofday(&recent_time); -#endif /* HAVE_CLOCK_MONOTONIC */ } /* We check thread consumed time. If the system has getrusage, we'll -- cgit v1.2.3