This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 619d80cf bool is macOS only, it seems
619d80cf is described below

commit 619d80cf277ec50e4931081d3508a77aaccd91f2
Author: Sebb <s...@apache.org>
AuthorDate: Fri Nov 24 17:40:32 2023 +0000

    bool is macOS only, it seems
---
 src/main/native/org/apache/commons/crypto/OpenSslInfoNative.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/native/org/apache/commons/crypto/OpenSslInfoNative.c 
b/src/main/native/org/apache/commons/crypto/OpenSslInfoNative.c
index 646ec715..26877eb9 100644
--- a/src/main/native/org/apache/commons/crypto/OpenSslInfoNative.c
+++ b/src/main/native/org/apache/commons/crypto/OpenSslInfoNative.c
@@ -72,7 +72,7 @@ static void get_methods(JNIEnv *env, HMODULE openssl)
   #endif
 }
 
-static bool loaded = false; // have we successfully loaded the library and the 
methods?
+static int loaded = 0; // have we successfully loaded the library and the 
methods?
 
 static int load_library(JNIEnv *env)
 {
@@ -83,7 +83,7 @@ static int load_library(JNIEnv *env)
   }
   if (!loaded) {
     get_methods(env, openssl);
-    loaded = true;
+    loaded = 1;
   }
   return 1;
 }

Reply via email to