summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-12 13:39:56 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-12 14:35:42 +0100
commit1909cb0724cbb981f284305dcc0ace62026dcffa (patch)
treecbce04bd17c0ebacb70ef39313c8e065446c9f19 /source3/smbd
parent1ce9c0ea3215eaa0956338972987704608d9d78e (diff)
downloadsamba-1909cb0724cbb981f284305dcc0ace62026dcffa.tar.gz
samba-1909cb0724cbb981f284305dcc0ace62026dcffa.tar.bz2
samba-1909cb0724cbb981f284305dcc0ace62026dcffa.zip
s3:smbd/blocking: avoid usage of server_event_context()
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/blocking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c
index d9c1fb2d3b..f07a79259f 100644
--- a/source3/smbd/blocking.c
+++ b/source3/smbd/blocking.c
@@ -139,9 +139,9 @@ static bool recalc_brl_timeout(struct smbd_server_connection *sconn)
(int)from_now.tv_sec, (int)from_now.tv_usec));
}
- sconn->smb1.locks.brl_timeout = event_add_timed(server_event_context(),
- NULL, next_timeout,
- brl_timeout_fn, sconn);
+ sconn->smb1.locks.brl_timeout = tevent_add_timer(sconn->ev_ctx,
+ NULL, next_timeout,
+ brl_timeout_fn, sconn);
if (sconn->smb1.locks.brl_timeout == NULL) {
return False;
}