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

index a5adb0d41600ad9192e4c74177e7dce1e3f09da8..9587aa5e053fcc0c425421cd7560cc6285a46e7c 100644 (file)
@@ -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