summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-02-16 23:36:21 +0100
committerKai Blin <kai@samba.org>2009-02-17 09:19:31 +0100
commit612c5e746bd4d0059eb8bcb8dbb4944db155f071 (patch)
tree577f0f0b46e1cb5cae9a8315383848c06a315551 /lib
parent48b874e3764a20952dfd5e2957a3074073b480db (diff)
downloadsamba-612c5e746bd4d0059eb8bcb8dbb4944db155f071.tar.gz
samba-612c5e746bd4d0059eb8bcb8dbb4944db155f071.tar.bz2
samba-612c5e746bd4d0059eb8bcb8dbb4944db155f071.zip
async_sock: Use tevent_timeval instead of timeval functions
Diffstat (limited to 'lib')
-rw-r--r--lib/async_req/async_req.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/async_req/async_req.c b/lib/async_req/async_req.c
index db47bd93ed..054c9f97cc 100644
--- a/lib/async_req/async_req.c
+++ b/lib/async_req/async_req.c
@@ -174,7 +174,7 @@ bool async_post_error(struct async_req *req, struct tevent_context *ev,
{
req->error = error;
- if (tevent_add_timer(ev, req, timeval_zero(),
+ if (tevent_add_timer(ev, req, tevent_timeval_zero(),
async_trigger, req) == NULL) {
return false;
}
@@ -208,7 +208,8 @@ bool async_req_set_timeout(struct async_req *req, struct tevent_context *ev,
struct timeval to)
{
return (tevent_add_timer(
- ev, req, timeval_current_ofs(to.tv_sec, to.tv_usec),
+ ev, req,
+ tevent_timeval_current_ofs(to.tv_sec, to.tv_usec),
async_req_timedout, req)
!= NULL);
}
@@ -300,7 +301,7 @@ bool async_req_enqueue(struct async_req_queue *queue, struct tevent_context *ev,
if (!busy) {
struct tevent_timer *te;
- te = tevent_add_timer(ev, e, timeval_zero(),
+ te = tevent_add_timer(ev, e, tevent_timeval_zero(),
async_req_immediate_trigger,
e);
if (te == NULL) {