From: Masatake YAMATO Date: Tue, 23 Jan 2024 23:58:45 +0000 (+0900) Subject: lsfd: (refactor) rename a function, s/new_process/new_proc/g X-Git-Tag: v2.41-devel~21^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=717dfc23b600fcc6e2d35d8624e6601de71dc904;p=thirdparty%2Futil-linux.git 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 --- 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);