From 525f87559f618e2d3b6f3c6db68d9062b373326e Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 1 May 2014 10:58:57 +0200
Subject: [PATCH] Cast alpn_list to void * to prevent MSVC compiler warnings
---
programs/ssl/ssl_client2.c | 2 +-
programs/ssl/ssl_server2.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 )