diff options
| author | 2020-02-16 21:04:44 +0000 | |
|---|---|---|
| committer | 2020-02-16 21:04:44 +0000 | |
| commit | 1eb893f361b5cb979fbde4a44e2a744b3a62d4c7 (patch) | |
| tree | 9a6775e734f5064f17efcc63662fda35cb21b0fa /usr.bin/dig/lib/isc/unix | |
| parent | Remove trailing backslashes (diff) | |
| download | wireguard-openbsd-1eb893f361b5cb979fbde4a44e2a744b3a62d4c7.tar.xz wireguard-openbsd-1eb893f361b5cb979fbde4a44e2a744b3a62d4c7.zip | |
The timer type we are using requires interval to be set, remove
unused interval_zero.
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/unix')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/include/isc/time.h | 8 | ||||
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/time.c | 5 |
2 files changed, 2 insertions, 11 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 9423a67781b..8f95089fc23 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.5 2020/02/16 18:05:09 florian Exp $ */ +/* $Id: time.h,v 1.6 2020/02/16 21:04:44 florian Exp $ */ #ifndef ISC_TIME_H #define ISC_TIME_H 1 @@ -24,12 +24,6 @@ #include <time.h> #include <isc/types.h> -/*** - *** Intervals - ***/ - -extern const struct timespec * const interval_zero; - /* * ISC_FORMATHTTPTIMESTAMP_SIZE needs to be 30 in C locale and potentially * more for other locales to handle longer national abbreviations when diff --git a/usr.bin/dig/lib/isc/unix/time.c b/usr.bin/dig/lib/isc/unix/time.c index 85ed2e906a2..e666dfc042c 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.8 2020/02/16 18:05:09 florian Exp $ */ +/* $Id: time.c,v 1.9 2020/02/16 21:04:44 florian Exp $ */ /*! \file */ @@ -47,9 +47,6 @@ *** Intervals ***/ -static const struct timespec zero_interval = { 0, 0 }; -const struct timespec * const interval_zero = &zero_interval; - void interval_set(struct timespec *i, time_t seconds, long nanoseconds) { |
