Commit 3ab4286c authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

crtools: Cleanup collect_pstree in cr-show

Rename this into read_pstree and remove unneeded 2nd argument.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 60304631
......@@ -425,7 +425,7 @@ err:
return ret;
}
static int collect_pstree(struct list_head *head, pid_t pid, struct cr_fdset *cr_fdset)
static int read_pstree(struct list_head *head, struct cr_fdset *cr_fdset)
{
int fd = cr_fdset->fds[CR_FD_PSTREE];
struct pstree_item *item = NULL;
......@@ -501,7 +501,7 @@ static int cr_show_all(unsigned long pid, struct cr_options *opts)
if (!cr_fdset)
goto out;
ret = collect_pstree(&pstree_list, pid, cr_fdset);
ret = read_pstree(&pstree_list, cr_fdset);
if (ret)
goto out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment