]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: function rename
authorKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:20:51 +0000 (11:20 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:20:51 +0000 (11:20 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsfd.c

index 77019489f7876e144ce722ba08ed568267cf557d..a07b4bcd6a114773d9a63418be9b5304f1fd03ae 100644 (file)
@@ -686,7 +686,7 @@ static void fill_column(struct proc *proc,
        }
 }
 
-static void convert1(struct proc *proc,
+static void convert_file(struct proc *proc,
                     struct file *file,
                     struct libscols_line *ln)
 
@@ -708,7 +708,8 @@ static void convert(struct list_head *procs, struct lsfd_control *ctl)
                        struct libscols_line *ln = scols_table_new_line(ctl->tb, NULL);
                        if (!ln)
                                err(EXIT_FAILURE, _("failed to allocate output line"));
-                       convert1(proc, file, ln);
+
+                       convert_file(proc, file, ln);
 
                        if (!lsfd_filter_apply(ctl->filter, ln))
                                scols_table_remove_line(ctl->tb, ln);