diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-05 10:22:50 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-05 15:07:35 +0100 |
commit | c34d5f445aae8180650dd2cae994bd5573870c04 (patch) | |
tree | c5787935da005402ce64fda6890a1137363235f1 /source3/winbindd/winbindd_cm.c | |
parent | ee5be748e64f6c8f4814ff322e38511a9a65f4fc (diff) | |
download | samba-c34d5f445aae8180650dd2cae994bd5573870c04.tar.gz samba-c34d5f445aae8180650dd2cae994bd5573870c04.tar.bz2 samba-c34d5f445aae8180650dd2cae994bd5573870c04.zip |
s3:events: change event_add_timed() prototype to match samba4
metze
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index b2b7628873..e5e3565604 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -272,7 +272,7 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain) static void check_domain_online_handler(struct event_context *ctx, struct timed_event *te, - const struct timeval *now, + struct timeval now, void *private_data) { struct winbindd_domain *domain = @@ -286,7 +286,7 @@ static void check_domain_online_handler(struct event_context *ctx, /* Are we still in "startup" mode ? */ - if (domain->startup && (now->tv_sec > domain->startup_time + 30)) { + if (domain->startup && (now.tv_sec > domain->startup_time + 30)) { /* No longer in "startup" mode. */ DEBUG(10,("check_domain_online_handler: domain %s no longer in 'startup' mode.\n", domain->name )); @@ -367,7 +367,6 @@ void set_domain_offline(struct winbindd_domain *domain) domain->check_online_event = event_add_timed(winbind_event_context(), NULL, timeval_current_ofs(domain->check_online_timeout,0), - "check_domain_online_handler", check_domain_online_handler, domain); @@ -518,7 +517,6 @@ void set_domain_online_request(struct winbindd_domain *domain) domain->check_online_event = event_add_timed(winbind_event_context(), NULL, tev, - "check_domain_online_handler", check_domain_online_handler, domain); |