summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-11 18:32:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:34 -0500
commit77a4b251130b8c187ae89f5d62160ad5cfcb6d14 (patch)
tree88ce8b870085ec5ef00e740846058628bd69bfec /source3
parent0d91334fe799f6b50a8265f9dc097411c3a29e18 (diff)
downloadsamba-77a4b251130b8c187ae89f5d62160ad5cfcb6d14.tar.gz
samba-77a4b251130b8c187ae89f5d62160ad5cfcb6d14.tar.bz2
samba-77a4b251130b8c187ae89f5d62160ad5cfcb6d14.zip
r21785: Avoid an unnecessary gettimeofday() call
Volker (This used to be commit a0af6ff736077725cc7d31d9cdecd024fc7e17a1)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 5b9ec1d55b..cffc9389d7 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -1579,7 +1579,7 @@ static void smbldap_idle_fn(struct event_context *event_ctx,
state->idle_event = event_add_timed(
event_ctx, NULL,
- timeval_current_ofs(SMBLDAP_IDLE_TIME, 0),
+ timeval_add(now, SMBLDAP_IDLE_TIME, 0),
"smbldap_idle_fn", smbldap_idle_fn,
private_data);
return;