Cast alpn_list to void * to prevent MSVC compiler warnings

This commit is contained in:
Paul Bakker 2014-05-01 10:58:57 +02:00
parent c3f89aa26c
commit 525f87559f
2 changed files with 2 additions and 2 deletions

View file

@ -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 )

View file

@ -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 )