mirror of https://github.com/getdnsapi/getdns.git
One more _getdns_perror
This commit is contained in:
parent
e2b26609d4
commit
09b4f6d57d
|
@ -143,7 +143,7 @@ static uint64_t get_now_plus(uint64_t amount)
|
||||||
uint64_t now;
|
uint64_t now;
|
||||||
|
|
||||||
if (gettimeofday(&tv, NULL)) {
|
if (gettimeofday(&tv, NULL)) {
|
||||||
perror("gettimeofday() failed");
|
_getdns_perror("gettimeofday() failed");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
now = tv.tv_sec * 1000000 + tv.tv_usec;
|
now = tv.tv_sec * 1000000 + tv.tv_usec;
|
||||||
|
|
|
@ -38,7 +38,7 @@ static uint64_t get_now_plus(uint64_t amount)
|
||||||
uint64_t now;
|
uint64_t now;
|
||||||
|
|
||||||
if (gettimeofday(&tv, NULL)) {
|
if (gettimeofday(&tv, NULL)) {
|
||||||
perror("gettimeofday() failed");
|
_getdns_perror("gettimeofday() failed");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
now = tv.tv_sec * 1000000 + tv.tv_usec;
|
now = tv.tv_sec * 1000000 + tv.tv_usec;
|
||||||
|
|
Loading…
Reference in New Issue