Skip to content

Commit

Permalink
Fix a couple isIgnoredState calls to the new prototype.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Dec 15, 2020
1 parent 1566da5 commit 57b7e56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions portlist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 57b7e56

Please sign in to comment.