diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 62d29ad22..06e4a16a4 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -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 ) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 48d5d30de..f68eadeb0 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -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 )