serf-dev mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1708519&view=rev
Log:
* test/MockHTTPinC/MockHTTP_server.c
  (bio_apr_socket_write): 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=1708519&r1=1708518&r2=1708519&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original)
+++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Tue Oct 13 21:32:12 2015
@@ -2286,10 +2286,11 @@ static int bio_apr_socket_write(BIO *bio
     apr_size_t len = inlen;
     _mhClientCtx_t *cctx = bio->ptr;
     sslCtx_t *ssl_ctx = cctx->ssl_ctx;
+    apr_status_t status;
 
     BIO_clear_retry_flags(bio);
 
-    apr_status_t status = apr_socket_send(cctx->skt, in, &len);
+    status = apr_socket_send(cctx->skt, in, &len);
     ssl_ctx->bio_status = status;
 
     if (len || !APR_STATUS_IS_EAGAIN(status))



Mime
View raw message