Cast alpn_list to void * to prevent MSVC compiler warnings
This commit is contained in:
parent
c3f89aa26c
commit
525f87559f
2 changed files with 2 additions and 2 deletions
|
@ -355,7 +355,7 @@ int main( int argc, char *argv[] )
|
||||||
pk_init( &pkey );
|
pk_init( &pkey );
|
||||||
#endif
|
#endif
|
||||||
#if defined(POLARSSL_SSL_ALPN)
|
#if defined(POLARSSL_SSL_ALPN)
|
||||||
memset( alpn_list, 0, sizeof alpn_list );
|
memset( (void * ) alpn_list, 0, sizeof( alpn_list ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( argc == 0 )
|
if( argc == 0 )
|
||||||
|
|
|
@ -489,7 +489,7 @@ int main( int argc, char *argv[] )
|
||||||
ssl_cache_init( &cache );
|
ssl_cache_init( &cache );
|
||||||
#endif
|
#endif
|
||||||
#if defined(POLARSSL_SSL_ALPN)
|
#if defined(POLARSSL_SSL_ALPN)
|
||||||
memset( alpn_list, 0, sizeof alpn_list );
|
memset( (void *) alpn_list, 0, sizeof( alpn_list ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( argc == 0 )
|
if( argc == 0 )
|
||||||
|
|
Loading…
Reference in a new issue