mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 15:09:02 +00:00
sed -i 's/if ( /if (/g' *.cc *.h; sed -i 's/for ( /for (/g' *.cc *.h; sed -i 's/( /(/g' nmap_amigaos.h tcpip.h service_scan.cc
There's still quite a lot of code like this, nse_openssl.cc being most messy IMHO. Also, I left out "if( something )" syntax.
This commit is contained in:
@@ -1928,7 +1928,7 @@ int UltraScanInfo::removeCompletedHosts() {
|
||||
|
||||
/* We don't want to run this all of the time */
|
||||
TIMEVAL_MSEC_ADD(compare, lastCompletedHostRemoval, completedHostLifetime / 2);
|
||||
if ( TIMEVAL_AFTER(now, compare) ) {
|
||||
if (TIMEVAL_AFTER(now, compare) ) {
|
||||
for (hostI = completedHosts.begin(); hostI != completedHosts.end(); hostI = nxt) {
|
||||
nxt = hostI;
|
||||
nxt++;
|
||||
@@ -1939,7 +1939,7 @@ int UltraScanInfo::removeCompletedHosts() {
|
||||
continue;
|
||||
|
||||
TIMEVAL_MSEC_ADD(compare, hss->completiontime, completedHostLifetime);
|
||||
if ( TIMEVAL_AFTER(now, compare) ) {
|
||||
if (TIMEVAL_AFTER(now, compare) ) {
|
||||
completedHosts.erase(hostI);
|
||||
hostsRemoved++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user