diff --git a/Target.cc b/Target.cc index 48e643ed4..9a675d866 100644 --- a/Target.cc +++ b/Target.cc @@ -517,7 +517,7 @@ bool Target::timedOut(const struct timeval *now) { used += TIMEVAL_MSEC_SUBTRACT(tv, htn.toclock_start); } - return (used > o.host_timeout)? true : false; + return (used > o.host_timeout); } diff --git a/nping/NpingTarget.cc b/nping/NpingTarget.cc index 30b227f98..05d5567a9 100644 --- a/nping/NpingTarget.cc +++ b/nping/NpingTarget.cc @@ -623,7 +623,7 @@ int NpingTarget::setNamedHost(bool val){ bool NpingTarget::isNamedHost(){ assert(this->namedhost==1 || this->namedhost==0 ); - return (this->namedhost==1) ? true : false; + return (this->namedhost==1); } /* End of isNamedHost() */ diff --git a/scan_engine.cc b/scan_engine.cc index 045f790ad..53add55d9 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -1868,7 +1868,7 @@ bool UltraScanInfo::sendOK(struct timeval *when) { if (when) *when = lowhtime; - return (TIMEVAL_MSEC_SUBTRACT(lowhtime, now) == 0) ? true : false; + return (TIMEVAL_MSEC_SUBTRACT(lowhtime, now) == 0); } /* Find a HostScanStats by its IP address in the incomplete and completed lists.