serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1708520 - /serf/trunk/test/MockHTTPinC/MockHTTP_server.c
Date Tue, 13 Oct 2015 21:34:32 GMT
Author: rhuijben
Date: Tue Oct 13 21:34:32 2015
New Revision: 1708520

URL: http://svn.apache.org/viewvc?rev=1708520&view=rev
Log:
* test/MockHTTPinC/MockHTTP_server.c
  (sslSocketRead): Fix C89/C90 compatibility by moving a variable declaration.

Modified:
    serf/trunk/test/MockHTTPinC/MockHTTP_server.c

Modified: serf/trunk/test/MockHTTPinC/MockHTTP_server.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/MockHTTPinC/MockHTTP_server.c?rev=1708520&r1=1708519&r2=1708520&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original)
+++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Tue Oct 13 21:34:32 2015
@@ -2626,9 +2626,10 @@ static apr_status_t
 sslSocketRead(apr_socket_t *skt, void *baton, char *data, apr_size_t *len)
 {
     sslCtx_t *ssl_ctx = baton;
+    int result;
 
     ssl_ctx->bio_status = APR_SUCCESS;
-    int result = SSL_read(ssl_ctx->ssl, data, *len);
+    result = SSL_read(ssl_ctx->ssl, data, *len);
     if (result > 0) {
         *len = result;
         return APR_SUCCESS;



Mime
View raw message