diff options
Diffstat (limited to 'resolv/res_send.c')
-rw-r--r-- | resolv/res_send.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c index 6b9c73f820..47bfba6747 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -172,12 +172,7 @@ evCmpTime(struct timespec a, struct timespec b) { static void evNowTime(struct timespec *res) { - struct timeval now; - - if (gettimeofday(&now, NULL) < 0) - evConsTime(res, 0, 0); - else - TIMEVAL_TO_TIMESPEC (&now, res); + __clock_gettime(CLOCK_REALTIME, res); } |