diff options
author | Jeremy Allison <jra@samba.org> | 2006-04-14 03:55:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:22 -0500 |
commit | cc203f3e59840b75fbb42a53d36b717a57268c2f (patch) | |
tree | 84756b715fb89cd96d83951f348e47c085a7013e /source3/lib | |
parent | 713eaf1d67d9ef967fb4526113e2a3ba3dd5e229 (diff) | |
download | samba-cc203f3e59840b75fbb42a53d36b717a57268c2f.tar.gz samba-cc203f3e59840b75fbb42a53d36b717a57268c2f.tar.bz2 samba-cc203f3e59840b75fbb42a53d36b717a57268c2f.zip |
r15084: Try and squeeze more out of the non-read/write code path.
Jeremy.
(This used to be commit 23dcff4d50d1d35b7ddee0d0cb79c16a312f179c)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/events.c | 8 |
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(); |