git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48b874e
)
async_sock: Use tevent_timeval instead of timeval functions
author
Kai Blin
<kai@samba.org>
Mon, 16 Feb 2009 22:36:21 +0000
(23:36 +0100)
committer
Kai Blin
<kai@samba.org>
Tue, 17 Feb 2009 08:19:31 +0000
(09:19 +0100)
lib/async_req/async_req.c
patch
|
blob
|
history
diff --git
a/lib/async_req/async_req.c
b/lib/async_req/async_req.c
index db47bd93ed1c733bf2074371587cc7cc012f1e57..054c9f97cc6d328e4fec4698f6c5f0b405b864ab 100644
(file)
--- 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;
{
req->error = error;
- if (tevent_add_timer(ev, req, timeval_zero(),
+ if (tevent_add_timer(ev, req, t
event_t
imeval_zero(),
async_trigger, req) == NULL) {
return false;
}
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(
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);
}
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;
if (!busy) {
struct tevent_timer *te;
- te = tevent_add_timer(ev, e, timeval_zero(),
+ te = tevent_add_timer(ev, e, t
event_t
imeval_zero(),
async_req_immediate_trigger,
e);
if (te == NULL) {
async_req_immediate_trigger,
e);
if (te == NULL) {