Author: rhuijben
Date: Sat Oct 17 19:01:10 2015
New Revision: 1709206

URL: http://svn.apache.org/viewvc?rev=1709206&view=rev
Log:
Following up on r1708898, r1708900 use the right baton variable to
pass a pointer value.

* serf-dev/dev/test/MockHTTPinC/MockHTTP_server.c
  (set_server_protocol,
   mhSetServerProtocol): Use baton instead of ibaton.

Found by: the sparc64 buildbot.

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=1709206&r1=1709205&r2=1709206&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original)
+++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Sat Oct 17 19:01:10 2015
@@ -1869,7 +1869,7 @@ mhServerSetupBldr_t *mhSetServerPort(mhS
 
 static bool set_server_protocol(const mhServerSetupBldr_t *ssb, mhServCtx_t 
*ctx)
 {
-  ctx->alpn = ssb->ibaton;
+  ctx->alpn = ssb->baton;
   return YES;
 }
 
@@ -1877,7 +1877,7 @@ mhServerSetupBldr_t *mhSetServerProtocol
 {
   apr_pool_t *pool = ctx->pool;
   mhServerSetupBldr_t *ssb = createServerSetupBldr(pool);
-  ssb->ibaton = apr_pstrdup(pool, protocols);
+  ssb->baton = apr_pstrdup(pool, protocols);
   ssb->serversetup = set_server_protocol;
   return ssb;
 }


Reply via email to