mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +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;
|
*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;
|
*when = (firstgood) ? USI->now : earliest_to;
|
||||||
return (firstgood) ? false : true;
|
return !firstgood;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* gives the maximum try number (try numbers start at zero and
|
/* gives the maximum try number (try numbers start at zero and
|
||||||
|
|||||||
Reference in New Issue
Block a user