serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1830985 - /serf/trunk/test/test_ssl.c
Date Sat, 05 May 2018 15:02:13 GMT
Author: brane
Date: Sat May  5 15:02:13 2018
New Revision: 1830985

URL: http://svn.apache.org/viewvc?rev=1830985&view=rev
Log:
Fix build on Windows.

* test/test_ssl.c (pkey_password_cb):
   MSVC doesn't like declarations after statements.

Modified:
    serf/trunk/test/test_ssl.c

Modified: serf/trunk/test/test_ssl.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/test_ssl.c?rev=1830985&r1=1830984&r2=1830985&view=diff
==============================================================================
--- serf/trunk/test/test_ssl.c (original)
+++ serf/trunk/test/test_ssl.c Sat May  5 15:02:13 2018
@@ -2462,12 +2462,12 @@ static void create_ocsp_response(CuTest
 
 static int pkey_password_cb(char *buf, int size, int rwflag, void *u)
 {
+    static const char passphrase[] = "serftest";
+    const int passlen = (int)strlen(passphrase);
+
     (void)rwflag;
     (void)u;
 
-    static const char passphrase[] = "serftest";
-
-    const int passlen = (int)strlen(passphrase);
     if (size <= passlen)
         return 0;
 



Mime
View raw message