1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Whitespace.

This commit is contained in:
david
2012-03-07 18:23:32 +00:00
parent 4a75312e83
commit 3f0f79b1b4

View File

@@ -241,25 +241,27 @@ void FingerPrintResults::populateClassification() {
osclass != matches[printno]->OS_class.end(); osclass != matches[printno]->OS_class.end();
osclass++) { osclass++) {
if (!classAlreadyExistsInResults(&*osclass)) { if (!classAlreadyExistsInResults(&*osclass)) {
// Then we have to add it ... first ensure we have room // Then we have to add it ... first ensure we have room
if (OSR.OSC_num_matches == MAX_FP_RESULTS) { if (OSR.OSC_num_matches == MAX_FP_RESULTS) {
// Out of space ... if the accuracy of this one is 100%, we have a problem // Out of space ... if the accuracy of this one is 100%, we have a problem
if (accuracy[printno] == 1.0) OSR.overall_results = OSSCAN_TOOMANYMATCHES; if (accuracy[printno] == 1.0)
return; OSR.overall_results = OSSCAN_TOOMANYMATCHES;
} return;
}
// We have space, but do we even want this one? No point // We have space, but do we even want this one? No point
// including lesser matches if we have 1 or more perfect // including lesser matches if we have 1 or more perfect
// matches. // matches.
if (OSR.OSC_num_perfect_matches > 0 && accuracy[printno] < 1.0) { if (OSR.OSC_num_perfect_matches > 0 && accuracy[printno] < 1.0) {
return; return;
} }
// OK, we will add the new class // OK, we will add the new class
OSR.OSC[OSR.OSC_num_matches] = &*osclass; OSR.OSC[OSR.OSC_num_matches] = &*osclass;
OSR.OSC_Accuracy[OSR.OSC_num_matches] = accuracy[printno]; OSR.OSC_Accuracy[OSR.OSC_num_matches] = accuracy[printno];
if (printno < num_perfect_matches) OSR.OSC_num_perfect_matches++; if (printno < num_perfect_matches)
OSR.OSC_num_matches++; OSR.OSC_num_perfect_matches++;
OSR.OSC_num_matches++;
} }
} }
} }