diff options
| author | 2020-02-16 21:11:02 +0000 | |
|---|---|---|
| committer | 2020-02-16 21:11:02 +0000 | |
| commit | a12dcefb48e200107d0d2d0ced8c8d9c25cb6d86 (patch) | |
| tree | 9fb057b930c99b994191b88919f80cc550e5796c /usr.bin/dig/lib/isc/include | |
| parent | Move isc_time_formathttptimestamp to the only place it is used. (diff) | |
| download | wireguard-openbsd-a12dcefb48e200107d0d2d0ced8c8d9c25cb6d86.tar.xz wireguard-openbsd-a12dcefb48e200107d0d2d0ced8c8d9c25cb6d86.zip | |
clock_gettime cannot fail if called correctly; unravel TIME_NOW
indirections.
(I'm not convinced that we always want to read CLOCK_REALTIME, in fact
we probably want to almost always read CLOCK_MONOTONIC.)
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/include')
| -rw-r--r-- | usr.bin/dig/lib/isc/include/isc/util.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/dig/lib/isc/include/isc/util.h b/usr.bin/dig/lib/isc/include/isc/util.h index 56390593db8..9a460785692 100644 --- a/usr.bin/dig/lib/isc/include/isc/util.h +++ b/usr.bin/dig/lib/isc/include/isc/util.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: util.h,v 1.1 2020/02/07 09:58:54 florian Exp $ */ +/* $Id: util.h,v 1.2 2020/02/16 21:11:02 florian Exp $ */ #ifndef ISC_UTIL_H #define ISC_UTIL_H 1 @@ -140,9 +140,4 @@ /*% Runtime Check */ #define RUNTIME_CHECK(cond) ISC_ERROR_RUNTIMECHECK(cond) -/*% - * Time - */ -#define TIME_NOW(tp) RUNTIME_CHECK(isc_time_now((tp)) == ISC_R_SUCCESS) - #endif /* ISC_UTIL_H */ |
