From 1ecb88b95a2559ce9b7a983c00c2e1e7246ae2b0 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 24 Jul 2004 13:40:47 +0000 Subject: [PATCH] Add casts where casts due. It's "safe" to cast, because "wrong" casts will either be optimized away or never performed. The trouble is that compiler first parses code, then optimizes, not both at once... --- ssl/ssl_cert.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 23f8e27d4e..0bef96080f 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -117,6 +117,7 @@ #if defined(WIN32) #include +#include #endif #ifdef NeXT @@ -831,7 +832,8 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack, if (wdir == NULL) goto err_noclose; #ifndef OPENSSL_NO_MULTIBYTE - if (!MultiByteToWideChar(CP_ACP,0,dir,len_0,wdir,len_0)) + if (!MultiByteToWideChar(CP_ACP,0,dir,len_0, + (WCHAR *)wdir,len_0)) #endif for (i=0;i