Re: [Openvpn-devel] [PATCH] test_tls_crypt: Improve mock() usage to be more portable

2023-07-01 Thread Arne Schwabe
Am 30.06.23 um 15:39 schrieb Frank Lichtenheld: Use the casting variants of mock(). Using the mock_ptr_type fixes an existing bug where test_tls_crypt.c couldn't build in MinGW 32bit: Acked-By: Arne Schwabe ___ Openvpn-devel mailing list Openvpn-d

[Openvpn-devel] [PATCH] test_tls_crypt: Improve mock() usage to be more portable

2023-06-30 Thread Frank Lichtenheld
Use the casting variants of mock(). Using the mock_ptr_type fixes an existing bug where test_tls_crypt.c couldn't build in MinGW 32bit: test_tls_crypt.c:127:27: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 127 | const char *pem_str = (const char *) mock