misc: adapt others to struct layout change, <PIDS> api
With the change to struct pids_fetch, we'll just trade some dot ('.') code for some pointer to ('->') syntax. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
2
pmap.c
2
pmap.c
@ -1164,7 +1164,7 @@ int main(int argc, char **argv)
|
||||
if (!(pids_fetch = procps_pids_select(info, pidlist, user_count, PROCPS_SELECT_PID)))
|
||||
xerrx(EXIT_FAILURE, _("library failed pids statistics"));
|
||||
|
||||
for (reap_count = 0; reap_count < pids_fetch->counts.total; reap_count++) {
|
||||
for (reap_count = 0; reap_count < pids_fetch->counts->total; reap_count++) {
|
||||
ret |= one_proc(pids_fetch->stacks[reap_count]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user