]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4242: compile errors with eCAP using clang-3.6
authorPavel Timofeev <timp87@gmail.com>
Thu, 20 Aug 2015 23:57:18 +0000 (16:57 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 20 Aug 2015 23:57:18 +0000 (16:57 -0700)
src/adaptation/ecap/ServiceRep.cc
src/adaptation/ecap/XactionRep.cc

index 489300cc1ec65bf25ec12c77beba271245a4d743..eef8a2ef10083a651e5a18b79896b05ec523240a 100644 (file)
@@ -234,7 +234,7 @@ bool Adaptation::Ecap::ServiceRep::probed() const
 
 bool Adaptation::Ecap::ServiceRep::up() const
 {
-    return theService != NULL;
+    return theService;
 }
 
 bool Adaptation::Ecap::ServiceRep::wantsUrl(const String &urlPath) const
index f0d465cd8642b155c1d44d6921036cac39b1c1ce..6944a039e0f98d8d43f3505a63d23fe1b97ba597 100644 (file)
@@ -72,7 +72,7 @@ void
 Adaptation::Ecap::XactionRep::master(const AdapterXaction &x)
 {
     Must(!theMaster);
-    Must(x != NULL);
+    Must(x);
     theMaster = x;
 }
 
@@ -259,7 +259,7 @@ Adaptation::Ecap::XactionRep::swanSong()
     // clear body_pipes, if any
     // this code does not maintain proxying* and canAccessVb states; should it?
 
-    if (theAnswerRep != NULL) {
+    if (theAnswerRep) {
         BodyPipe::Pointer body_pipe = answer().body_pipe;
         if (body_pipe != NULL) {
             Must(body_pipe->stillProducing(this));
@@ -318,7 +318,7 @@ Adaptation::Ecap::XactionRep::cause()
 libecap::Message &
 Adaptation::Ecap::XactionRep::adapted()
 {
-    Must(theAnswerRep != NULL);
+    Must(theAnswerRep);
     return *theAnswerRep;
 }