From: Pavel Timofeev Date: Tue, 11 Aug 2015 06:32:29 +0000 (-0700) Subject: Bug 4242: compile errors with eCAP using clang-3.6 X-Git-Tag: SQUID_4_0_1~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c276d506e5b05f4869cff179e51cf712aa28734;p=thirdparty%2Fsquid.git Bug 4242: compile errors with eCAP using clang-3.6 --- diff --git a/src/adaptation/ecap/ServiceRep.cc b/src/adaptation/ecap/ServiceRep.cc index 95dda0992e..25b8b0990a 100644 --- a/src/adaptation/ecap/ServiceRep.cc +++ b/src/adaptation/ecap/ServiceRep.cc @@ -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 diff --git a/src/adaptation/ecap/XactionRep.cc b/src/adaptation/ecap/XactionRep.cc index 5cb0f2f10f..9a738c7727 100644 --- a/src/adaptation/ecap/XactionRep.cc +++ b/src/adaptation/ecap/XactionRep.cc @@ -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; }