You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2018/03/29 10:42:29 UTC

[geode-native] 01/02: Fixes for linux

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

jbarrett pushed a commit to branch feature/GEODE-4946-msvc-warn
in repository https://gitbox.apache.org/repos/asf/geode-native.git

commit af63987ed56638d72b3036b70c02e6f1b7df8850
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Thu Mar 29 10:24:23 2018 +0000

    Fixes for linux
---
 cryptoimpl/SSLImpl.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cryptoimpl/SSLImpl.cpp b/cryptoimpl/SSLImpl.cpp
index a70f6d6..9fa0835 100644
--- a/cryptoimpl/SSLImpl.cpp
+++ b/cryptoimpl/SSLImpl.cpp
@@ -39,12 +39,13 @@ void gf_destroy_SslImpl(void *impl) {
   delete theLib;
 }
 
-extern "C" static int pem_passwd_cb(char *buf, int size, int rwflag,
-                                    void *passwd) {
+extern "C" {
+static int pem_passwd_cb(char *buf, int size, int rwflag, void *passwd) {
   strncpy(buf, (char *)passwd, size);
   buf[size - 1] = '\0';
   return static_cast<int>(strlen(buf));
 }
+}
 
 SSLImpl::SSLImpl(ACE_HANDLE sock, const char *pubkeyfile,
                  const char *privkeyfile, const char *password) {

-- 
To stop receiving notification emails like this one, please contact
jbarrett@apache.org.