From df4f23eec030140ea6ce9bdab7d7046f8a7fb66b Mon Sep 17 00:00:00 2001 From: jay Date: Sun, 3 Aug 2014 04:25:18 +0000 Subject: [PATCH] Change all statements of the form 'return BOOLEAN_EXPRESSION ? false : true;' to 'return !BOOLEAN_EXPRESSION;' --- osscan2.cc | 2 +- scan_engine.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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