diff options
| author | 2020-02-16 21:06:53 +0000 | |
|---|---|---|
| committer | 2020-02-16 21:06:53 +0000 | |
| commit | bb7ec10836894f0524e4282397c8a152f505cb0a (patch) | |
| tree | 4c8668f233a1c688d4aa85545fa4e2a519d76728 /usr.bin/dig/lib/isc/unix/time.c | |
| parent | Reduce interval indirection by setting struct members directly and (diff) | |
| download | wireguard-openbsd-bb7ec10836894f0524e4282397c8a152f505cb0a.tar.xz wireguard-openbsd-bb7ec10836894f0524e4282397c8a152f505cb0a.zip | |
remove timespec setters
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/time.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/time.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.bin/dig/lib/isc/unix/time.c b/usr.bin/dig/lib/isc/unix/time.c index 77c581a0016..c1e3003cabb 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.10 2020/02/16 21:06:15 florian Exp $ */ +/* $Id: time.c,v 1.11 2020/02/16 21:06:54 florian Exp $ */ /*! \file */ @@ -47,22 +47,6 @@ *** Absolute Times ***/ -void -isc_time_set(struct timespec *t, time_t seconds, long nanoseconds) { - REQUIRE(t != NULL); - REQUIRE(nanoseconds < NS_PER_S); - - t->tv_sec = seconds; - t->tv_nsec = nanoseconds; -} - -void -isc_time_settoepoch(struct timespec *t) { - REQUIRE(t != NULL); - - timespecclear(t); -} - isc_boolean_t isc_time_isepoch(const struct timespec *t) { REQUIRE(t != NULL); |
