related: respond to VAL macro addition of context parm
Since the VAL macro now requires a 4th parameter, this commit simply adds the 'info' context structure to it. In some cases, that context structure needed to become global, since it was referenced in multiple functions. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
6
pidof.c
6
pidof.c
@ -151,9 +151,9 @@ static void select_procs (void)
|
||||
|
||||
exe_link = root_link = NULL;
|
||||
while ((stack = procps_pids_get(info, PIDS_FETCH_TASKS_ONLY))) {
|
||||
char *p_cmd = PIDS_VAL(rel_cmd, str, stack),
|
||||
**p_cmdline = PIDS_VAL(rel_cmdline, strv, stack);
|
||||
int tid = PIDS_VAL(rel_pid, s_int, stack);
|
||||
char *p_cmd = PIDS_VAL(rel_cmd, str, stack, info),
|
||||
**p_cmdline = PIDS_VAL(rel_cmdline, strv, stack, info);
|
||||
int tid = PIDS_VAL(rel_pid, s_int, stack, info);
|
||||
|
||||
if (opt_rootdir_check) {
|
||||
/* get the /proc/<pid>/root symlink value */
|
||||
|
Reference in New Issue
Block a user