diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-03-07 23:56:20 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-04-05 01:59:39 +0100 |
commit | d695bc8bc60698bdcc07f9ab8c649a77383bcc85 (patch) | |
tree | c7b49bbb38313028df5675d7ba64198d6fee4a8a /src | |
parent | b85eb8d6835e7665bf6151db070261b123c22f95 (diff) | |
download | coreutils-d695bc8bc60698bdcc07f9ab8c649a77383bcc85.tar.xz |
maint: various cleanups
* tests/misc/numfmt.pl: Fix comment misspelling.
* src/cut.c: Likewise.
* src/tsort.c (detect_loop): Replace an fprintf() with error().
Diffstat (limited to 'src')
-rw-r--r-- | src/cut.c | 2 | ||||
-rw-r--r-- | src/tsort.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -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; diff --git a/src/tsort.c b/src/tsort.c index fb5ff296f..661c71730 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -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) |