Commit 525f8755 authored by Paul Bakker's avatar Paul Bakker
Browse files

Cast alpn_list to void * to prevent MSVC compiler warnings

parent c3f89aa2
......@@ -355,7 +355,7 @@ int main( int argc, char *argv[] )
pk_init( &pkey );
#endif
#if defined(POLARSSL_SSL_ALPN)
memset( alpn_list, 0, sizeof alpn_list );
memset( (void * ) alpn_list, 0, sizeof( alpn_list ) );
#endif
if( argc == 0 )
......
......@@ -489,7 +489,7 @@ int main( int argc, char *argv[] )
ssl_cache_init( &cache );
#endif
#if defined(POLARSSL_SSL_ALPN)
memset( alpn_list, 0, sizeof alpn_list );
memset( (void *) alpn_list, 0, sizeof( alpn_list ) );
#endif
if( argc == 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment