You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2015/01/26 12:38:10 UTC
svn commit: r1654771 - /subversion/trunk/subversion/libsvn_ra_serf/util.c
Author: rhuijben
Date: Mon Jan 26 11:38:10 2015
New Revision: 1654771
URL: http://svn.apache.org/r1654771
Log:
Tweak a tiny bit of code to help during debugging. No runtime change.
* subversion/libsvn_ra_serf/util.c
(accept_response,
accept_head): Document baton.
(setup_request_cb): Use handler as baton instead of the session, to
allow access to the request information from callbacks.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/util.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=1654771&r1=1654770&r2=1654771&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Mon Jan 26 11:38:10 2015
@@ -567,6 +567,7 @@ accept_response(serf_request_t *request,
void *acceptor_baton,
apr_pool_t *pool)
{
+ /* svn_ra_serf__handler_t *handler = acceptor_baton; */
serf_bucket_t *c;
serf_bucket_alloc_t *bkt_alloc;
@@ -584,6 +585,7 @@ accept_head(serf_request_t *request,
void *acceptor_baton,
apr_pool_t *pool)
{
+ /* svn_ra_serf__handler_t *handler = acceptor_baton; */
serf_bucket_t *response;
response = accept_response(request, stream, acceptor_baton, pool);
@@ -1539,7 +1541,7 @@ setup_request_cb(serf_request_t *request
*acceptor = accept_head;
else
*acceptor = accept_response;
- *acceptor_baton = handler->session;
+ *acceptor_baton = handler;
*s_handler = handle_response_cb;
*s_handler_baton = handler;