misc: adapt others to a changed identifier, <pids> API
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
edb124ec86
commit
714ea69c6d
2
pmap.c
2
pmap.c
@ -1153,7 +1153,7 @@ int main(int argc, char **argv)
|
||||
|
||||
discover_shm_minor();
|
||||
|
||||
if (!(pids_reap = procps_pids_select(info, pidlist, user_count, PROCPS_FILL_PID)))
|
||||
if (!(pids_reap = procps_pids_select(info, pidlist, user_count, PROCPS_SELECT_PID)))
|
||||
xerrx(EXIT_FAILURE, _("library failed pids statistics"));
|
||||
|
||||
for (reap_count = 0; reap_count < pids_reap->counts.total; reap_count++) {
|
||||
|
@ -282,7 +282,7 @@ static void simple_spew(void){
|
||||
unsigned *pidlist = xcalloc(selection_list->n, sizeof(unsigned));
|
||||
for (i = 0; i < selection_list->n; i++)
|
||||
pidlist[i] = selection_list->u[selection_list->n-i-1].pid;
|
||||
pidreap = procps_pids_select(Pids_info, pidlist, selection_list->n, PROCPS_FILL_PID);
|
||||
pidreap = procps_pids_select(Pids_info, pidlist, selection_list->n, PROCPS_SELECT_PID);
|
||||
free(pidlist);
|
||||
} else {
|
||||
enum pids_reap_type which;
|
||||
|
@ -2272,7 +2272,7 @@ static void procs_refresh (void) {
|
||||
Frame_etscale = 100.0f / ((float)Hertz * (float)et * (Rc.mode_irixps ? 1 : Cpu_cnt));
|
||||
|
||||
if (!Monpidsidx) Pids_reap = procps_pids_reap(Pids_ctx, Thread_mode);
|
||||
else Pids_reap = procps_pids_select(Pids_ctx, Monpids, Monpidsidx, PROCPS_FILL_PID);
|
||||
else Pids_reap = procps_pids_select(Pids_ctx, Monpids, Monpidsidx, PROCPS_SELECT_PID);
|
||||
if (!Pids_reap)
|
||||
error_exit(fmtmk(N_fmt(LIB_errorpid_fmt),__LINE__));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user