diff options
author | Andy Polyakov <appro@openssl.org> | 2006-10-23 07:41:05 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2006-10-23 07:41:05 +0000 |
commit | a6efc2d1b8848e3a9f57acfea881e187afa38820 (patch) | |
tree | d3c181f2316fd5786226339d06e91f0263539a11 /crypto | |
parent | 3189772e07dafe359f84ada71001515127bc396d (diff) |
Fix mingw warnings.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/LPdir_win.c | 2 | ||||
-rw-r--r-- | crypto/dso/dso_win32.c | 2 | ||||
-rw-r--r-- | crypto/engine/eng_padlock.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/crypto/LPdir_win.c b/crypto/LPdir_win.c index 09b475beed..702dbc730f 100644 --- a/crypto/LPdir_win.c +++ b/crypto/LPdir_win.c @@ -54,8 +54,6 @@ struct LP_dir_context_st const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) { - struct dirent *direntry = NULL; - if (ctx == NULL || directory == NULL) { errno = EINVAL; diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c index d98a3e85f3..eea0b07c3c 100644 --- a/crypto/dso/dso_win32.c +++ b/crypto/dso/dso_win32.c @@ -826,7 +826,7 @@ static void *win32_globallookup(const char *name) } do { - if (ret = GetProcAddress(me32.hModule,name)) + if ((ret = GetProcAddress(me32.hModule,name))) { (*close_snap)(hModuleSnap); FreeLibrary(dll); diff --git a/crypto/engine/eng_padlock.c b/crypto/engine/eng_padlock.c index e1d66eac58..3fbb51b585 100644 --- a/crypto/engine/eng_padlock.c +++ b/crypto/engine/eng_padlock.c @@ -123,9 +123,11 @@ void ENGINE_load_padlock (void) #ifdef COMPILE_HW_PADLOCK /* We do these includes here to avoid header problems on platforms that do not have the VIA padlock anyway... */ -#ifdef _MSC_VER +#ifdef _WIN32 # include <malloc.h> -# define alloca _alloca +# ifndef alloca +# define alloca _alloca +# endif #else # include <stdlib.h> #endif |