mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Change all statements of the form 'return BOOLEAN_EXPRESSION ? false : true;' to 'return !BOOLEAN_EXPRESSION;'
This commit is contained in:
@@ -1310,7 +1310,7 @@ bool HostOsScan::nextTimeout(HostOsScanStats *hss, struct timeval *when) {
|
||||
}
|
||||
|
||||
*when = (firstgood)? now : earliest_to;
|
||||
return (firstgood)? false : true;
|
||||
return !firstgood;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user