mirror of
https://github.com/nmap/nmap.git
synced 2026-10-25 05:13:04 +00:00
Fix a couple isIgnoredState calls to the new prototype.
This commit is contained in:
parent
1566da56f8
commit
57b7e56a68
1 changed files with 4 additions and 3 deletions
|
|
@ -814,7 +814,7 @@ bool PortList::isIgnoredState(int state, int *count) {
|
|||
int PortList::numIgnoredStates() {
|
||||
int numstates = 0;
|
||||
for(int state=0; state < PORT_HIGHEST_STATE; state++) {
|
||||
if (isIgnoredState(state))
|
||||
if (isIgnoredState(state, NULL))
|
||||
numstates++;
|
||||
}
|
||||
return numstates;
|
||||
|
|
@ -823,9 +823,10 @@ int PortList::numIgnoredStates() {
|
|||
int PortList::numIgnoredPorts() {
|
||||
|
||||
int numports = 0;
|
||||
int tmp = 0;
|
||||
for(int state=0; state < PORT_HIGHEST_STATE; state++) {
|
||||
if (isIgnoredState(state))
|
||||
numports += getStateCounts(state);
|
||||
if (isIgnoredState(state, &tmp))
|
||||
numports += tmp;
|
||||
}
|
||||
return numports;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue