mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Change all statements of the form 'return BOOLEAN_EXPRESSION ? false : true;' to 'return !BOOLEAN_EXPRESSION;'
This commit is contained in:
parent
68659157f6
commit
df4f23eec0
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue