From ffbbf1a1ba5c66ebfe3fd67d17dc177d3d89b6a0 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 16 Feb 2020 21:08:59 +0000 Subject: unravel isc_time_add and isc_time_subtract OK millert --- usr.bin/dig/lib/isc/unix/time.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'usr.bin/dig/lib/isc/unix/time.c') diff --git a/usr.bin/dig/lib/isc/unix/time.c b/usr.bin/dig/lib/isc/unix/time.c index 4d63835291c..a0f60d032fd 100644 --- a/usr.bin/dig/lib/isc/unix/time.c +++ b/usr.bin/dig/lib/isc/unix/time.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: time.c,v 1.13 2020/02/16 21:08:15 florian Exp $ */ +/* $Id: time.c,v 1.14 2020/02/16 21:08:59 florian Exp $ */ /*! \file */ @@ -58,27 +58,6 @@ isc_time_now(struct timespec *t) { return (ISC_R_SUCCESS); } -isc_result_t -isc_time_add(const struct timespec *t, const struct timespec *i, struct timespec *result) -{ - REQUIRE(t != NULL && i != NULL && result != NULL); - INSIST(t->tv_nsec < NS_PER_S && i->tv_nsec < NS_PER_S); - - timespecadd(t, i, result); - return (ISC_R_SUCCESS); -} - -isc_result_t -isc_time_subtract(const struct timespec *t, const struct timespec *i, - struct timespec *result) -{ - REQUIRE(t != NULL && i != NULL && result != NULL); - INSIST(t->tv_nsec < NS_PER_S && i->tv_nsec < NS_PER_S); - - timespecsub(t, i, result); - return (ISC_R_SUCCESS); -} - uint64_t isc_time_microdiff(const struct timespec *t1, const struct timespec *t2) { struct timespec res; -- cgit v1.2.3-59-g8ed1b