1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 05:31:31 +00:00

Minor style fixes

This commit is contained in:
luis
2011-07-26 12:04:08 +00:00
parent 6defb790d2
commit bbda5dfd90

View File

@@ -413,33 +413,34 @@ static void doSeqTests(OsScanInfo *OSI, HostOsScan *HOS) {
list<HostOsScanInfo *>::iterator hostI;
HostOsScanInfo *hsi = NULL;
HostOsScanStats *hss = NULL;
unsigned int unableToSend; /* # of times in a row that hosts were unable to send probe */
unsigned int expectReplies;
long to_usec;
unsigned int unableToSend = 0; /* # of times in a row that hosts were unable to send probe */
unsigned int expectReplies = 0;
long to_usec = 0;
int timeToSleep = 0;
struct ip *ip = NULL;
struct link_header linkhdr;
struct sockaddr_storage ss;
unsigned int bytes;
unsigned int bytes = 0;
struct timeval rcvdtime;
struct timeval stime, tmptv;
struct timeval stime;
struct timeval tmptv;
bool timedout = false;
bool thisHostGood;
bool foundgood;
bool goodResponse;
bool thisHostGood = false;
bool foundgood = false;
bool goodResponse = false;
int numProbesLeft = 0;
memset(&stime, 0, sizeof(stime));
memset(&tmptv, 0, sizeof(tmptv));
/* For each host, build a list of sequence probes to send */
for(hostI = OSI->incompleteHosts.begin(); hostI != OSI->incompleteHosts.end(); hostI++) {
hsi = *hostI;
hss = hsi->hss;
HOS->buildSeqProbeList(hss);
}
/* Iterate until we have sent all the probes */
do {
if(timeToSleep > 0) {
if(o.debugging > 1) {