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

index 95dda0992ee37e5551bb718892243d839c9436ce..25b8b0990aaf80419a91851ebddc7cb6c63bfe17 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 SBuf &urlPath) const
index 5cb0f2f10ff5c40bef41924fcdac340d6f4f2f86..9a738c77275127453235e6504c6a27394536ad7f 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;
 }