From: Karel Zak Date: Tue, 7 Sep 2021 15:38:47 +0000 (+0200) Subject: lslocks: use lib/procfs.c X-Git-Tag: v2.38-rc1~144^2~110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0692c3ae1ab565e6e4452bc8624511b7b7e3ec9d;p=thirdparty%2Futil-linux.git lslocks: use lib/procfs.c --- diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index a5adb0d416..9587aa5e05 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -44,7 +44,7 @@ #include "list.h" #include "closestream.h" #include "optutils.h" -#include "procutils.h" +#include "procfs.h" /* column IDs */ enum { @@ -282,7 +282,7 @@ static int get_local_locks(struct list_head *locks) */ l->pid = strtos32_or_err(tok, _("failed to parse pid")); if (l->pid > 0) { - l->cmdname = proc_get_command_name(l->pid); + l->cmdname = pid_get_cmdname(l->pid); if (!l->cmdname) l->cmdname = xstrdup(_("(unknown)")); } else