diff options
| author | 2020-02-13 21:34:06 +0000 | |
|---|---|---|
| committer | 2020-02-13 21:34:06 +0000 | |
| commit | 40adc7c53e27d127bc335a503ac956d7aa0cbf3a (patch) | |
| tree | efa48361cb08196656a2a58dd37708c72622316c /usr.bin/dig/lib/isc/unix/time.c | |
| parent | Fix missing locking during calls to selwakeup(). (diff) | |
| download | wireguard-openbsd-40adc7c53e27d127bc335a503ac956d7aa0cbf3a.tar.xz wireguard-openbsd-40adc7c53e27d127bc335a503ac956d7aa0cbf3a.zip | |
threads are gone, replace thread safe isc__strerror() wrapper
with strerror() and drop it
ok millert florian
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/time.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/time.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/dig/lib/isc/unix/time.c b/usr.bin/dig/lib/isc/unix/time.c index 39b0cb26f73..c9b8c34c07f 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.5 2020/02/13 12:03:51 jsg Exp $ */ +/* $Id: time.c,v 1.6 2020/02/13 21:34:06 jung Exp $ */ /*! \file */ @@ -28,7 +28,6 @@ #include <sys/time.h> /* Required for struct timeval on some platforms. */ -#include <isc/strerror.h> #include <string.h> #include <isc/time.h> @@ -113,13 +112,11 @@ isc_time_isepoch(const isc_time_t *t) { isc_result_t isc_time_now(isc_time_t *t) { struct timeval tv; - char strbuf[ISC_STRERRORSIZE]; REQUIRE(t != NULL); if (gettimeofday(&tv, NULL) == -1) { - isc__strerror(errno, strbuf, sizeof(strbuf)); - UNEXPECTED_ERROR(__FILE__, __LINE__, "%s", strbuf); + UNEXPECTED_ERROR(__FILE__, __LINE__, "%s", strerror(errno)); return (ISC_R_UNEXPECTED); } |
