]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix simpledynamic.c - a typo and missed a header
authorKelvin Lee <kiyolee@gmail.com>
Tue, 1 Dec 2020 13:25:01 +0000 (00:25 +1100)
committerKelvin Lee <kiyolee@gmail.com>
Tue, 1 Dec 2020 13:25:01 +0000 (00:25 +1100)
CLA: trivial

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13584)

test/simpledynamic.c

index 41a910caa269a01c4ac8bcff63c7d2f8fcbb6711..bbeeae02a497c4f78f61fbbbc83301331fea3c70 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <stdlib.h>              /* For NULL */
 #include <openssl/macros.h>      /* For NON_EMPTY_TRANSLATION_UNIT */
+#include <openssl/e_os2.h>
 #include "simpledynamic.h"
 
 #if defined(DSO_DLFCN)
@@ -42,7 +43,7 @@ const char *sd_error(void)
 
 #elif defined(DSO_WIN32)
 
-nt sd_load(const char *filename, SD *lib, ossl_unused int type)
+int sd_load(const char *filename, SD *lib, ossl_unused int type)
 {
     *lib = LoadLibraryA(filename);
     return *lib == NULL ? 0 : 1;