diff options
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/register.c | 2 | ||||
-rw-r--r-- | source4/nbt_server/wins/winsclient.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/nbt_server/register.c b/source4/nbt_server/register.c index b166d46b7f..fb2f9913c5 100644 --- a/source4/nbt_server/register.c +++ b/source4/nbt_server/register.c @@ -122,7 +122,7 @@ static void nbtd_start_refresh_timer(struct nbtd_iface_name *iname) refresh_time = MIN(max_refresh_time, iname->ttl/2); - event_add_timed(iname->iface->nbtsrv->task->event_ctx, + tevent_add_timer(iname->iface->nbtsrv->task->event_ctx, iname, timeval_add(&iname->registration_time, refresh_time, 0), name_refresh_handler, iname); diff --git a/source4/nbt_server/wins/winsclient.c b/source4/nbt_server/wins/winsclient.c index 60d2b94dec..b047b2b411 100644 --- a/source4/nbt_server/wins/winsclient.c +++ b/source4/nbt_server/wins/winsclient.c @@ -60,7 +60,7 @@ static void nbtd_wins_start_refresh_timer(struct nbtd_iface_name *iname) refresh_time = MIN(max_refresh_time, iname->ttl/2); - event_add_timed(iname->iface->nbtsrv->task->event_ctx, + tevent_add_timer(iname->iface->nbtsrv->task->event_ctx, iname, timeval_add(&iname->registration_time, refresh_time, 0), nbtd_wins_refresh, iname); @@ -194,7 +194,7 @@ static void nbtd_wins_register_handler(struct tevent_req *subreq) /* none of the WINS servers responded - try again periodically */ int wins_retry_time = lpcfg_parm_int(iname->iface->nbtsrv->task->lp_ctx, NULL, "nbtd", "wins_retry", 300); - event_add_timed(iname->iface->nbtsrv->task->event_ctx, + tevent_add_timer(iname->iface->nbtsrv->task->event_ctx, iname, timeval_current_ofs(wins_retry_time, 0), nbtd_wins_register_retry, |