From 717dfc23b600fcc6e2d35d8624e6601de71dc904 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Wed, 24 Jan 2024 08:58:45 +0900 Subject: [PATCH] lsfd: (refactor) rename a function, s/new_process/new_proc/g Rename the function for making the name consistent with free_proc(). Signed-off-by: Masatake YAMATO --- misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index d41f45c8e0..2d04f4c4ab 100644 --- a/misc-utils/lsfd.c +++ b/misc-utils/lsfd.c @@ -741,7 +741,7 @@ static void free_file(struct file *file) } -static struct proc *new_process(pid_t pid, struct proc *leader) +static struct proc *new_proc(pid_t pid, struct proc *leader) { struct proc *proc = xcalloc(1, sizeof(*proc)); @@ -1664,7 +1664,7 @@ static void read_process(struct lsfd_control *ctl, struct path_cxt *pc, if (procfs_process_init_path(pc, pid) != 0) return; - proc = new_process(pid, leader); + proc = new_proc(pid, leader); proc->command = procfs_process_get_cmdname(pc, buf, sizeof(buf)) > 0 ? xstrdup(buf) : xstrdup(_("(unknown)")); procfs_process_get_uid(pc, &proc->uid); -- 2.47.3