summaryrefslogtreecommitdiff
path: root/source3/lib/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/events.c')
-rw-r--r--source3/lib/events.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 133752c78e..242c198511 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -103,16 +103,12 @@ void run_events(void)
return;
}
-struct timeval *get_timed_events_timeout(struct timeval *to_ret, time_t default_to)
+struct timeval *get_timed_events_timeout(struct timeval *to_ret)
{
struct timeval now;
if (timed_events == NULL) {
- if (default_to == (time_t)-1) {
- return NULL;
- }
- *to_ret = timeval_set(default_to, 0);
- return to_ret;
+ return NULL;
}
now = timeval_current();