]> git.ipfire.org Git - thirdparty/openvpn.git/commit
ssl: Change update argument of compute_earliest_wakeup to time_t
authorFrank Lichtenheld <frank@lichtenheld.com>
Sun, 16 Nov 2025 18:36:15 +0000 (19:36 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 16 Nov 2025 21:58:37 +0000 (22:58 +0100)
commit0e2fc09d4336bd3e87dfb37123ba4df208b1c048
treea09923a8875ff684929b23b4674add5635a7b5f2
parentd926257bf4636ea43f6f5c25f5235baa25f65203
ssl: Change update argument of compute_earliest_wakeup to time_t

Since we usually input a diff of two time_t values here
the input value will be officially time_t. So avoid
conversion warnings at almost every caller site.

We can safely cast it to interval_t here because we
checked that it is smaller than the interval_t value
earliest. And all negative values are treated equal,
so exact value doesn't matter.

Change-Id: I6bc3147d10ca50291110335cd9fc3be961280c1b
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1299
Message-Id: <20251116183622.11727-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34482.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c