summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-18 10:57:54 +0100
committerMichael Adam <obnox@samba.org>2013-02-19 23:48:02 +0100
commitfdf9da96c5ebe3fde8ec9fe6fba70cc8427f51d0 (patch)
treee73eeeea414b887afcfb87433fec543bdbd19f57 /source3/winbindd
parentcdb97fd9ec107617083c8d9ea068e1c0555443e8 (diff)
downloadsamba-fdf9da96c5ebe3fde8ec9fe6fba70cc8427f51d0.tar.gz
samba-fdf9da96c5ebe3fde8ec9fe6fba70cc8427f51d0.tar.bz2
samba-fdf9da96c5ebe3fde8ec9fe6fba70cc8427f51d0.zip
s3:winbindd: s/event_add_timed/tevent_add_timer
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c4
-rw-r--r--source3/winbindd/winbindd_cred_cache.c14
-rw-r--r--source3/winbindd/winbindd_dual.c8
3 files changed, 13 insertions, 13 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index b2f8cc481a..055c023cb5 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -380,7 +380,7 @@ void set_domain_offline(struct winbindd_domain *domain)
calc_new_online_timeout_check(domain);
- domain->check_online_event = event_add_timed(winbind_event_context(),
+ domain->check_online_event = tevent_add_timer(winbind_event_context(),
NULL,
timeval_current_ofs(domain->check_online_timeout,0),
check_domain_online_handler,
@@ -536,7 +536,7 @@ void set_domain_online_request(struct winbindd_domain *domain)
TALLOC_FREE(domain->check_online_event);
- domain->check_online_event = event_add_timed(winbind_event_context(),
+ domain->check_online_event = tevent_add_timer(winbind_event_context(),
NULL,
tev,
check_domain_online_handler,
diff --git a/source3/winbindd/winbindd_cred_cache.c b/source3/winbindd/winbindd_cred_cache.c
index 293a821a23..3ca45d76a8 100644
--- a/source3/winbindd/winbindd_cred_cache.c
+++ b/source3/winbindd/winbindd_cred_cache.c
@@ -285,7 +285,7 @@ done:
if (entry->refresh_time == 0) {
entry->refresh_time = new_start;
}
- entry->event = event_add_timed(winbind_event_context(), entry,
+ entry->event = tevent_add_timer(winbind_event_context(), entry,
timeval_set(new_start, 0),
krb5_ticket_refresh_handler,
entry);
@@ -385,7 +385,7 @@ static void krb5_ticket_gain_handler(struct tevent_context *event_ctx,
if (entry->refresh_time == 0) {
entry->refresh_time = t.tv_sec;
}
- entry->event = event_add_timed(winbind_event_context(),
+ entry->event = tevent_add_timer(winbind_event_context(),
entry,
t,
krb5_ticket_refresh_handler,
@@ -404,7 +404,7 @@ static void add_krb5_ticket_gain_handler_event(struct WINBINDD_CCACHE_ENTRY *ent
struct timeval t)
{
entry->refresh_time = 0;
- entry->event = event_add_timed(winbind_event_context(),
+ entry->event = tevent_add_timer(winbind_event_context(),
entry,
t,
krb5_ticket_gain_handler,
@@ -424,13 +424,13 @@ void ccache_regain_all_now(void)
* the event has the krb5_ticket_gain_handler
*/
if (cur->refresh_time == 0) {
- new_event = event_add_timed(winbind_event_context(),
+ new_event = tevent_add_timer(winbind_event_context(),
cur,
t,
krb5_ticket_gain_handler,
cur);
} else {
- new_event = event_add_timed(winbind_event_context(),
+ new_event = tevent_add_timer(winbind_event_context(),
cur,
t,
krb5_ticket_refresh_handler,
@@ -571,7 +571,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name,
if (!entry->refresh_time) {
entry->refresh_time = t.tv_sec;
}
- entry->event = event_add_timed(winbind_event_context(),
+ entry->event = tevent_add_timer(winbind_event_context(),
entry,
t,
krb5_ticket_refresh_handler,
@@ -669,7 +669,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name,
if (entry->refresh_time == 0) {
entry->refresh_time = t.tv_sec;
}
- entry->event = event_add_timed(winbind_event_context(),
+ entry->event = tevent_add_timer(winbind_event_context(),
entry,
t,
krb5_ticket_refresh_handler,
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index b4ef0bd79e..08f3dda5f7 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -898,7 +898,7 @@ static void account_lockout_policy_handler(struct tevent_context *ctx,
nt_errstr(result)));
}
- child->lockout_policy_event = event_add_timed(winbind_event_context(), NULL,
+ child->lockout_policy_event = tevent_add_timer(winbind_event_context(), NULL,
timeval_current_ofs(3600, 0),
account_lockout_policy_handler,
child);
@@ -1060,7 +1060,7 @@ static void machine_password_change_handler(struct tevent_context *ctx,
}
done:
- child->machine_password_change_event = event_add_timed(winbind_event_context(), NULL,
+ child->machine_password_change_event = tevent_add_timer(winbind_event_context(), NULL,
next_change,
machine_password_change_handler,
child);
@@ -1497,7 +1497,7 @@ static bool fork_domain_child(struct winbindd_child *child)
set_domain_online_request(primary_domain);
}
- child->lockout_policy_event = event_add_timed(
+ child->lockout_policy_event = tevent_add_timer(
winbind_event_context(), NULL, timeval_zero(),
account_lockout_policy_handler,
child);
@@ -1511,7 +1511,7 @@ static bool fork_domain_child(struct winbindd_child *child)
if (calculate_next_machine_pwd_change(child->domain->name,
&next_change)) {
- child->machine_password_change_event = event_add_timed(
+ child->machine_password_change_event = tevent_add_timer(
winbind_event_context(), NULL, next_change,
machine_password_change_handler,
child);