]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Print time_t as long long and suseconds_t as long
authorJeremie Courreges-Anglas <jca@wxcvbn.org>
Thu, 26 Oct 2017 09:40:05 +0000 (11:40 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 4 Nov 2017 18:10:02 +0000 (19:10 +0100)
commit31b5c0e9a0c10f59a0e987a9e1f82e9268b30e61
treee9dccb77effef236bb48c29af7f382fd15768994
parent4ac769fb848619dcb39589af29302d8c2d698258
Print time_t as long long and suseconds_t as long

As per previous commit, this is a simple solution to cope with the
various sizes of time_t on different archs, including those that use 64
bits time_t on ILP32 archs to cope with y2038.

Also:
- convert the time_type/time_format abstraction that used unsigned long
  to inlined long long code
- print suseconds_t as a long, which appears to be the underlying type
  on most Unix systems around

Signed-off-by: Jeremie Courreges-Anglas <jca@wxcvbn.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <87k1zi18lt.fsf@ritchie.wxcvbn.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15667.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/common.h
src/openvpn/error.c
src/openvpn/event.c
src/openvpn/forward.c
src/openvpn/multi.c
src/openvpn/otime.c
src/openvpn/packet_id.c
src/openvpn/reliable.c
src/openvpn/shaper.c
src/openvpn/shaper.h
src/openvpn/ssl_openssl.c