0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
David Sommerseth
dde1574596
Reformatting source code to new coding style
This is the result after running 'clang-format -i' on all C++ files and
headers, with the defined formatting rules in .clang-format.

Only the openvpn/common/unicode-impl.hpp has been excluded, as that is
mostly a copy of an external project.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2023-01-18 19:24:15 +01:00
David Sommerseth
8c94a8f774
copyright: Update to 2022
Signed-off-by: David Sommerseth <davids@openvpn.net>
2022-09-29 12:00:26 +02:00
James Yonan
7e484e1fa7 clamp: added variant clamp_nonzero() to only clamp non-zero values
This is useful for clamping parameter values to a range,
but where zero is a special case (for example to disable
the parameter).

Signed-off-by: James Yonan <james@openvpn.net>
2021-08-17 13:07:40 -06:00
David Sommerseth
3fbe0a2701
Update copyrights
Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-03-18 19:37:32 +01:00
James Yonan
c1a7f8cc68
std::clamp() is useful but only available in C++17 and up, so we add our own clamp()
Signed-off-by: James Yonan <james@openvpn.net>
2019-06-19 18:35:19 +02:00