]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: various cleanups
authorPádraig Brady <P@draigBrady.com>
Fri, 7 Mar 2014 23:56:20 +0000 (23:56 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 5 Apr 2014 00:59:39 +0000 (01:59 +0100)
* tests/misc/numfmt.pl: Fix comment misspelling.
* src/cut.c: Likewise.
* src/tsort.c (detect_loop): Replace an fprintf() with error().

src/cut.c
src/tsort.c
tests/misc/numfmt.pl

index b659a2b0cf9121e6f3a7516b05c62ea93b053282..552806823cf3b312cc603e15a3df893ee25044dd 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -417,7 +417,7 @@ set_fields (const char *fieldstr)
 
   /* After merging, reallocate RP so we release memory to the system.
      Also add a sentinel at the end of RP, to avoid out of bounds access
-     and for perfomance reasons.  */
+     and for performance reasons.  */
   ++n_rp;
   rp = xrealloc (rp, n_rp * sizeof (struct range_pair));
   rp[n_rp - 1].lo = rp[n_rp - 1].hi = SIZE_MAX;
index fb5ff296fd12354a100997591f57fdff0e2fbf4a..661c71730d6f2593cf4c627bf85dd78632d4ab64 100644 (file)
@@ -347,8 +347,7 @@ detect_loop (struct item *k)
                         {
                           struct item *tmp = loop->qlink;
 
-                          fprintf (stderr, "%s: %s\n", program_name,
-                                   loop->str);
+                          error (0, 0, "%s", loop->str);
 
                           /* Until we encounter K again.  */
                           if (loop == k)
index e53b22d455fdb29e6adfc959e99c956dd920f5e4..ca3c8967517deb28b75242450242c3a4e53f3089 100755 (executable)
@@ -260,7 +260,7 @@ my @Tests =
      #   so these are 40 of "M", not 40,000,000.
      ['mix-1', '--suffix=M --from=si 40M',     {OUT=>"40M"}],
 
-     # These are fourty-million Ms .
+     # These are forty-million Ms .
      ['mix-2', '--suffix=M --from=si 40MM',     {OUT=>"40000000M"}],
 
      ['mix-3', '--suffix=M --from=auto 40MM',     {OUT=>"40000000M"}],