]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: use lib/procfs.c
authorKarel Zak <kzak@redhat.com>
Tue, 7 Sep 2021 15:40:55 +0000 (17:40 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
misc-utils/lsfd.c

index 2c936b5a65d03b01c9a0dcad00a5373e0f50cb2d..3e216061a0cf5bc4adc8b9d862b8ff8557cfaabf 100644 (file)
@@ -43,7 +43,7 @@ static int kcmp(pid_t pid1, pid_t pid2, int type,
 #include "list.h"
 #include "closestream.h"
 #include "strutils.h"
-#include "procutils.h"
+#include "procfs.h"
 #include "fileutils.h"
 #include "idcache.h"
 
@@ -801,7 +801,7 @@ static void fill_proc(struct proc *proc)
 
        INIT_LIST_HEAD(&proc->files);
 
-       proc->command = proc_get_command_name(proc->pid);
+       proc->command = pid_get_cmdname(proc->pid);
        if (!proc->command)
                proc->command = xstrdup(_("(unknown)"));