summaryrefslogtreecommitdiffstats
path: root/lib/thread.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-18 01:30:43 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 18:26:32 +0100
commitcf672a865428b5e55844b6d2e01ca9d3bd4afe6b (patch)
treefd47b5006fa2f7cc6499e6d84f800ccfb74d77dc /lib/thread.c
parent*: remove quagga_gettime() return value checks (diff)
downloadfrr-cf672a865428b5e55844b6d2e01ca9d3bd4afe6b.tar.xz
frr-cf672a865428b5e55844b6d2e01ca9d3bd4afe6b.zip
*: use monotime()
This is largely a bulk-replace made with coccinelle. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/thread.c b/lib/thread.c
index acec80a63..cb7676f0e 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -93,30 +93,6 @@ quagga_get_relative (struct timeval *tv)
return ret;
}
-/* Exported Quagga timestamp function.
- * Modelled on POSIX clock_gettime.
- */
-int
-quagga_gettime (enum quagga_clkid clkid, struct timeval *tv)
-{
- switch (clkid)
- {
- case QUAGGA_CLK_MONOTONIC:
- return quagga_get_relative (tv);
- default:
- errno = EINVAL;
- return -1;
- }
-}
-
-time_t
-quagga_monotime (void)
-{
- struct timeval tv;
- quagga_get_relative(&tv);
- return tv.tv_sec;
-}
-
static unsigned int
cpu_record_hash_key (struct cpu_thread_history *a)
{