]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Fri, 24 Sep 2010 05:10:27 +0000 (23:10 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Fri, 24 Sep 2010 05:10:27 +0000 (23:10 -0600)
src/BodyPipe.cc
src/adaptation/icap/ModXact.cc

index ffc28c0803a3df562f663def1f7a7930b67ad70f..aea639da48244cd4dd6837f19e5b4dcd8c1b74ae 100644 (file)
@@ -261,12 +261,12 @@ BodyPipe::expectNoConsumption()
 {
     Must(!theConsumer);
     if (!abortedConsumption && !exhausted()) {
-            AsyncCall::Pointer call= asyncCall(91, 7,
-                                               "BodyProducer::noteBodyConsumerAborted",
-                                               BodyProducerDialer(theProducer,
-                                                                  &BodyProducer::noteBodyConsumerAborted, this));
-            ScheduleCallHere(call);
-            abortedConsumption = true;
+        AsyncCall::Pointer call= asyncCall(91, 7,
+                                           "BodyProducer::noteBodyConsumerAborted",
+                                           BodyProducerDialer(theProducer,
+                                                              &BodyProducer::noteBodyConsumerAborted, this));
+        ScheduleCallHere(call);
+        abortedConsumption = true;
     }
 }
 
index b7acfa5421bad59899fdaf5502fc1cb2813e5820..eaef7a51bb486acf2e73ac1a8dbee37ee3cd9be3 100644 (file)
@@ -862,20 +862,20 @@ void Adaptation::Icap::ModXact::prepEchoing()
     // allocate the adapted message and copy metainfo
     Must(!adapted.header);
     {
-    HttpMsg::Pointer newHead;
-    if (const HttpRequest *oldR = dynamic_cast<const HttpRequest*>(oldHead)) {
-        HttpRequest::Pointer newR(new HttpRequest);
-        newR->canonical = oldR->canonical ?
-                          xstrdup(oldR->canonical) : NULL; // parse() does not set it
-        newHead = newR;
-    } else if (dynamic_cast<const HttpReply*>(oldHead)) {
-        newHead = new HttpReply;
-    }
-    Must(newHead != NULL);
+        HttpMsg::Pointer newHead;
+        if (const HttpRequest *oldR = dynamic_cast<const HttpRequest*>(oldHead)) {
+            HttpRequest::Pointer newR(new HttpRequest);
+            newR->canonical = oldR->canonical ?
+                              xstrdup(oldR->canonical) : NULL; // parse() does not set it
+            newHead = newR;
+        } else if (dynamic_cast<const HttpReply*>(oldHead)) {
+            newHead = new HttpReply;
+        }
+        Must(newHead != NULL);
 
-    newHead->inheritProperties(oldHead);
+        newHead->inheritProperties(oldHead);
 
-    adapted.setHeader(newHead);
+        adapted.setHeader(newHead);
     }
 
     // parse the buffer back