mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[crypto,tls] explicitly cast function pointer
This commit is contained in:
@@ -315,7 +315,7 @@ static long bio_rdp_tls_ctrl(BIO* bio, int cmd, long num, void* ptr)
|
||||
*
|
||||
* This, of course, is something compilers warn about. So silence it by casting */
|
||||
{
|
||||
void* vptr = (void*)SSL_get_info_callback(tls->ssl);
|
||||
void* vptr = WINPR_FUNC_PTR_CAST(SSL_get_info_callback(tls->ssl), void*);
|
||||
*((void**)ptr) = vptr;
|
||||
status = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user