]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: rename list_colunms() to list_columns() and remove trailing whitespaces
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 1 Sep 2025 21:27:55 +0000 (17:27 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 2 Sep 2025 22:52:01 +0000 (18:52 -0400)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
lib/pidutils.c
lsfd-cmd/lsfd.c
misc-utils/findmnt.c
misc-utils/lslocks.c
sys-utils/lsns.c

index 5007cba3eca0b3f5a39e6fe9e425d86f0e4e7ede..56f3b8578896c4114b9265dfbd2539951e047ece 100644 (file)
@@ -19,8 +19,8 @@
  * @pfd_ino: stores pidfd inode number
  *
  * If @pfd_ino is not destined to be set, pass it as NULL.
- * 
- * Return: On success, 0 is returned. 
+ *
+ * Return: On success, 0 is returned.
  *         On failure, a negative errno number will be returned.
  */
 int ul_parse_pid_str(char *pidstr, pid_t *pid_num, ino_t *pfd_ino)
@@ -31,7 +31,7 @@ int ul_parse_pid_str(char *pidstr, pid_t *pid_num, ino_t *pfd_ino)
 
        if (!pidstr || !*pidstr || !pid_num)
                return -EINVAL;
-       
+
        num = strtoimax(pidstr, &end, 10);
        if (errno == 0 && ((num && num < 1) || (num && num > SINT_MAX(pid_t))))
                return -ERANGE;
index d6d6a4f013b10e06ae5589148d1a98bc0ecb4c10..c17209896e3042839593ed9c54f58dddc61d2222 100644 (file)
@@ -2177,7 +2177,7 @@ static void collect_processes(struct lsfd_control *ctl, const pid_t pids[], int
        ul_unref_path(pc);
 }
 
-static void __attribute__((__noreturn__)) list_colunms(const char *table_name,
+static void __attribute__((__noreturn__)) list_columns(const char *table_name,
                                                       FILE *out,
                                                       int raw,
                                                       int json)
@@ -2694,7 +2694,7 @@ int main(int argc, char *argv[])
        }
 
        if (collist)
-               list_colunms("lsfd-columns", stdout, ctl.raw, ctl.json); /* print and exit */
+               list_columns("lsfd-columns", stdout, ctl.raw, ctl.json); /* print and exit */
 
        if (argv[optind])
                errtryhelp(EXIT_FAILURE);
index c15d36418413cc6a10394f3ca237c154ed9d7da9..463537e69922ded1ee49e2b3e5dcb36c1f3b1954 100644 (file)
@@ -1601,7 +1601,7 @@ static void __attribute__((__noreturn__)) usage(void)
        exit(EXIT_SUCCESS);
 }
 
-static void __attribute__((__noreturn__)) list_colunms(struct findmnt *findmnt)
+static void __attribute__((__noreturn__)) list_columns(struct findmnt *findmnt)
 {
        size_t i;
        struct libscols_table *tb = xcolumn_list_table_new("findmnt-columns", stdout,
@@ -2059,7 +2059,7 @@ int main(int argc, char *argv[])
        }
 
        if (collist)
-               list_colunms(&findmnt);         /* print end exit */
+               list_columns(&findmnt);         /* print end exit */
 
        if (!ncolumns && (findmnt.flags & FL_DF)) {
                add_column(COL_SOURCE);
index 4ed3a371660ffbdd90350da4078a69510cef5a6b..abe330ced7c50f00c3a4a7e9b8d5cd8d58be63da 100644 (file)
@@ -827,7 +827,7 @@ static void __attribute__((__noreturn__)) usage(void)
        exit(EXIT_SUCCESS);
 }
 
-static void __attribute__((__noreturn__)) list_colunms(void)
+static void __attribute__((__noreturn__)) list_columns(void)
 {
        struct libscols_table *col_tb = xcolumn_list_table_new(
                                        "lslocks-columns", stdout, raw, json);
@@ -935,7 +935,7 @@ int main(int argc, char *argv[])
        }
 
        if (collist)
-               list_colunms(); /* print end exit */
+               list_columns(); /* print end exit */
 
        INIT_LIST_HEAD(&proc_locks);
 
index 6b6ad8355c70acccfdc84c3162e624ab32fa40a2..8133c113186c2711fa2ede6401f2490aa184d6ce 100644 (file)
@@ -1591,7 +1591,7 @@ static void __attribute__((__noreturn__)) usage(void)
        exit(EXIT_SUCCESS);
 }
 
-static void __attribute__((__noreturn__)) list_colunms(bool raw, bool json)
+static void __attribute__((__noreturn__)) list_columns(bool raw, bool json)
 {
    struct libscols_table *col_tb = xcolumn_list_table_new("lsns-columns", stdout, raw, json);
 
@@ -1731,7 +1731,7 @@ int main(int argc, char *argv[])
                        ls.filter = new_filter(optarg);
                        break;
                case 'H':
-                       list_colunms(ls.raw, ls.json);
+                       list_columns(ls.raw, ls.json);
 
                case 'h':
                        usage();