diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-13 15:36:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-13 16:02:14 +0100 |
commit | fa2461ae73e5add4b51b9eb6a44a7b7a4cb26a78 (patch) | |
tree | 52c851922e6de14407bb221d32c17c76bdf0b9e7 | |
parent | 1d949fe742f3470010ee032b6b465857cc41d582 (diff) | |
download | samba-fa2461ae73e5add4b51b9eb6a44a7b7a4cb26a78.tar.gz samba-fa2461ae73e5add4b51b9eb6a44a7b7a4cb26a78.tar.bz2 samba-fa2461ae73e5add4b51b9eb6a44a7b7a4cb26a78.zip |
lib/tevent: expose ev_timeval_zero() for internal usage
metze
-rw-r--r-- | lib/tevent/tevent_internal.h | 1 | ||||
-rw-r--r-- | lib/tevent/tevent_timed.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h index d9759e2ee5..ff7f4951f1 100644 --- a/lib/tevent/tevent_internal.h +++ b/lib/tevent/tevent_internal.h @@ -157,6 +157,7 @@ void tevent_common_fd_set_close_fn(struct tevent_fd *fde, uint16_t tevent_common_fd_get_flags(struct tevent_fd *fde); void tevent_common_fd_set_flags(struct tevent_fd *fde, uint16_t flags); +struct timeval ev_timeval_zero(); bool ev_timeval_is_zero(const struct timeval *tv); struct tevent_timer *tevent_common_add_timer(struct tevent_context *ev, TALLOC_CTX *mem_ctx, diff --git a/lib/tevent/tevent_timed.c b/lib/tevent/tevent_timed.c index 6f28159ed2..f11670d90f 100644 --- a/lib/tevent/tevent_timed.c +++ b/lib/tevent/tevent_timed.c @@ -44,7 +44,7 @@ static int ev_timeval_compare(const struct timeval *tv1, const struct timeval *t /** return a zero timeval */ -static struct timeval ev_timeval_zero(void) +struct timeval ev_timeval_zero(void) { struct timeval tv; tv.tv_sec = 0; |