diff --git a/osscan2.cc b/osscan2.cc index 1667a8593..8a1bbd811 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -1310,7 +1310,7 @@ bool HostOsScan::nextTimeout(HostOsScanStats *hss, struct timeval *when) { } *when = (firstgood)? now : earliest_to; - return (firstgood)? false : true; + return !firstgood; } diff --git a/scan_engine.cc b/scan_engine.cc index 53add55d9..061e2577d 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -1452,7 +1452,7 @@ bool HostScanStats::nextTimeout(struct timeval *when) { } *when = (firstgood) ? USI->now : earliest_to; - return (firstgood) ? false : true; + return !firstgood; } /* gives the maximum try number (try numbers start at zero and