]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Document/cleanup event_timeout functions
authorArne Schwabe <arne@rfc2549.org>
Thu, 6 Oct 2022 12:29:40 +0000 (14:29 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 7 Oct 2022 10:23:08 +0000 (12:23 +0200)
commit0b980fa4e5761d6544ccf96b89fc2186ce23e144
tree849b9af54045eb8cc9d0538b70c03a3e2583f2a0
parent437812d4eac9ac892fbfd2fd97c50384b2d2ec07
Document/cleanup event_timeout functions

Remove function event_timeout_clear_ret as it is unused.

Cleanup event_timeout_trigger a bit. Do an instant return false if the
timeout is not defined and inline local_now and use
event_timeout_remaining instead of local duplicated code.

Add doxygen comments for all timeout function, especially for the
event_timeout_trigger function that is hard to understand otherwise.

Patch v2: add many fixes/correction suggested by Frank

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20221006122940.1202712-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25348.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/interval.c
src/openvpn/interval.h
src/openvpn/openvpn.h