diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2008-11-21 11:44:47 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-03 05:05:43 +0100 |
commit | d6ad8a772a1bf03f2df90ca63e8b23e64a9f5f7e (patch) | |
tree | 64ebfab2c9fe118b4e7f26643ee090a287569072 /lib | |
parent | dca6c883ea6219460efbe3dadde4b8b9cb12c845 (diff) | |
download | quagga-d6ad8a772a1bf03f2df90ca63e8b23e64a9f5f7e.tar.bz2 quagga-d6ad8a772a1bf03f2df90ca63e8b23e64a9f5f7e.tar.xz |
lib: Unexport recent_time
Exporting a variable is bad practise and since
recent_time isn't used, make it static.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/thread.c | 10 |
1 files changed, 1 insertions, 9 deletions
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 |