From 57b7e56a68c5e7b84a519844cccc0e210818d959 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 15 Dec 2020 22:16:36 +0000 Subject: [PATCH] Fix a couple isIgnoredState calls to the new prototype. --- portlist.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/portlist.cc b/portlist.cc index 35a8201e7..12f701e1a 100644 --- a/portlist.cc +++ b/portlist.cc @@ -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; }