diff options
| author | 2020-02-16 08:06:37 +0000 | |
|---|---|---|
| committer | 2020-02-16 08:06:37 +0000 | |
| commit | 5ec3631770cd1b9dc5848765fb144264c1eb401a (patch) | |
| tree | bb661b5839276fda3277fc045093f371956f971b /usr.bin/dig/lib/isc/unix | |
| parent | We only use isc_timertype_once, get rid of all other types. (diff) | |
| download | wireguard-openbsd-5ec3631770cd1b9dc5848765fb144264c1eb401a.tar.xz wireguard-openbsd-5ec3631770cd1b9dc5848765fb144264c1eb401a.zip | |
Now we are only using one timer type (once) and expires is always NULL
so remove those struct members.
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/unix')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/include/isc/time.h | 4 | ||||
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/time.c | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/dig/lib/isc/unix/include/isc/time.h b/usr.bin/dig/lib/isc/unix/include/isc/time.h index 288b3d058f9..5110031e414 100644 --- a/usr.bin/dig/lib/isc/unix/include/isc/time.h +++ b/usr.bin/dig/lib/isc/unix/include/isc/time.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: time.h,v 1.3 2020/02/13 13:53:01 jsg Exp $ */ +/* $Id: time.h,v 1.4 2020/02/16 08:06:37 florian Exp $ */ #ifndef ISC_TIME_H #define ISC_TIME_H 1 @@ -88,8 +88,6 @@ struct isc_time { unsigned int nanoseconds; }; -extern const isc_time_t * const isc_time_epoch; - void isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds); /*%< diff --git a/usr.bin/dig/lib/isc/unix/time.c b/usr.bin/dig/lib/isc/unix/time.c index c9b8c34c07f..c6de5cc82d4 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.6 2020/02/13 21:34:06 jung Exp $ */ +/* $Id: time.c,v 1.7 2020/02/16 08:06:37 florian Exp $ */ /*! \file */ @@ -77,9 +77,6 @@ interval_iszero(const interval_t *i) { *** Absolute Times ***/ -static const isc_time_t epoch = { 0, 0 }; -const isc_time_t * const isc_time_epoch = &epoch; - void isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) { REQUIRE(t != NULL); |
