diff options
author | defanor <defanor@uberspace.net> | 2023-05-02 13:05:26 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-05-02 13:05:26 +0300 |
commit | 938963c1d1c6a9b929d28a90030332d4f397ca61 (patch) | |
tree | 596869c5f96b7578826c7e84c439f0b6313339b1 /src/rexmpp_dns.h | |
parent | f53cb7886439619860ff86451318a5a04fc49322 (diff) |
Use timespec and monotonic clock for timers
Diffstat (limited to 'src/rexmpp_dns.h')
-rw-r--r-- | src/rexmpp_dns.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rexmpp_dns.h b/src/rexmpp_dns.h index 6641238..abfe6b7 100644 --- a/src/rexmpp_dns.h +++ b/src/rexmpp_dns.h @@ -103,9 +103,9 @@ int rexmpp_dns_fds (rexmpp_t *s, fd_set *read_fds, fd_set *write_fds); /** @brief Reports timeouts. */ -struct timeval * rexmpp_dns_timeout (rexmpp_t *s, - struct timeval *max_tv, - struct timeval *tv); +struct timespec * rexmpp_dns_timeout (rexmpp_t *s, + struct timespec *max_tv, + struct timespec *tv); typedef void (*dns_query_cb_t) (rexmpp_t *s, void *ptr, rexmpp_dns_result_t *result); |