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

index aa1dd4540fbb123e9863d1a53d94b360285175ad..d209f4507d90b1e4212242aaaf7c4cf38cd91a90 100644 (file)
@@ -37,7 +37,7 @@
 #include "strutils.h"
 #include "optutils.h"
 #include "xalloc.h"
-#include "procutils.h"
+#include "procfs.h"
 #include "ipcutils.h"
 #include "timeutils.h"
 
@@ -694,7 +694,7 @@ static void do_sem(int id, struct lsipc_control *ctl, struct libscols_table *tb)
                                        break;
 
                                /* COMMAND */
-                               arg = proc_get_command(e->pid);
+                               arg = pid_get_cmdline(e->pid);
                                rc = scols_line_refer_data(sln, 5, arg);
                                if (rc)
                                        break;
@@ -1059,7 +1059,7 @@ static void do_shm(int id, struct lsipc_control *ctl, struct libscols_table *tb)
                                rc = scols_line_refer_data(ln, n, arg);
                                break;
                        case COL_COMMAND:
-                               arg = proc_get_command(shmdsp->shm_cprid);
+                               arg = pid_get_cmdline(shmdsp->shm_cprid);
                                rc = scols_line_refer_data(ln, n, arg);
                                break;
                        }