1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:winbindd: s/event_add_timed/tevent_add_timer

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-02-18 10:57:54 +01:00 committed by Michael Adam
parent cdb97fd9ec
commit fdf9da96c5
3 changed files with 13 additions and 13 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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);