Re: [Openvpn-devel] [PATCH] tls-crypt: properly cast time_t to uint64_t

2018-10-31 Thread Arne Schwabe
Am 31.10.18 um 17:01 schrieb Antonio Quartulli: > The exact type of time_t is platform dependent and therefore > can't be assumed to be uint64_t all the time. > > For example, on 32bit platforms, where time_t is defined as long > (32bit), the compiler will generate the following warning, due > to

[Openvpn-devel] [PATCH] tls-crypt: properly cast time_t to uint64_t

2018-10-31 Thread Antonio Quartulli
The exact type of time_t is platform dependent and therefore can't be assumed to be uint64_t all the time. For example, on 32bit platforms, where time_t is defined as long (32bit), the compiler will generate the following warning, due to the arithmetic used in the macro: tls_crypt.c:745:29: warni