From 0692c3ae1ab565e6e4452bc8624511b7b7e3ec9d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 7 Sep 2021 17:38:47 +0200 Subject: [PATCH] lslocks: use lib/procfs.c --- misc-utils/lslocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3