]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3153: additional compile fixes
authorChristos Tsantilas <christos@chtsanti.net>
Mon, 27 Jun 2011 00:31:09 +0000 (18:31 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 27 Jun 2011 00:31:09 +0000 (18:31 -0600)
src/adaptation/Initiate.cc

index 2f7d7c1acd6056d1147116c2ca4cb70ff56fcc8b..c1ce082354c63f91640d0cff8a3c60e4fcd2ade6 100644 (file)
@@ -31,6 +31,7 @@ private:
 /// scheduled but never fired (e.g., because the HTTP transaction aborts).
 class AnswerCall: public AsyncCallT<AnswerDialer>
 {
+public:
     AnswerCall(const char *aName, const AnswerDialer &aDialer) :
             AsyncCallT<AnswerDialer>(93, 5, aName, aDialer), fired(false) {}
     virtual void fire() {
@@ -38,9 +39,11 @@ class AnswerCall: public AsyncCallT<AnswerDialer>
         AsyncCallT<AnswerDialer>::fire();
     }
     virtual ~AnswerCall() {
-        if (!fired && dialer.arg1.message != NULL && dialer.arg1.message->body_pipe != NULL)
-            dialer.arg1.message->body_pipe->expectNoConsumption();
+        if (!fired && dialer.arg1 != NULL && dialer.arg1->body_pipe != NULL)
+            dialer.arg1->body_pipe->expectNoConsumption();
     }
+
+private:
     bool fired; ///< whether we fired the call
 };
 
@@ -91,7 +94,7 @@ void Adaptation::Initiate::sendAnswer(HttpMsg *msg)
 {
     assert(msg);
     AsyncCall::Pointer call = new AnswerCall("Initiator::noteAdaptationAnswer",
-            AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, answer));
+            AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, msg));
     ScheduleCallHere(call);
     clearInitiator();
 }