summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-19 15:08:53 +0000
committerJim Meyering <jim@meyering.net>1997-07-19 15:08:53 +0000
commitf1ee29eac32f3a0748c3a629303833cd63b6d554 (patch)
tree285cf3bc1654d4468b2918c6cef365986243cf36 /src
parent1bc1e233ca5dffc0913db14a99dea26a7f745f22 (diff)
downloadcoreutils-f1ee29eac32f3a0748c3a629303833cd63b6d554.tar.xz
(checkfp): tweak comment
Diffstat (limited to 'src')
-rw-r--r--src/sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c
index b1b8893a8..b3b7e1717 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1204,12 +1204,12 @@ compare (register const struct line *a, register const struct line *b)
}
/* Check that the lines read from the given FP come in order. Print a
- diagnostic to stderr (POSIX says -c shouldn't write to stdout) and return
+ diagnostic (FILE_NAME, line number, contents of line) to stderr and return
the line number of the first out-of-order line (counting from 1) if they
are not in order. Otherwise, print no diagnostic and return zero. */
static int
-checkfp (FILE *fp, const char *file)
+checkfp (FILE *fp, const char *file_name)
{
struct buffer buf; /* Input buffer. */
struct lines lines; /* Lines scanned from the buffer. */
@@ -1294,7 +1294,7 @@ finish:
if (disorder_line_number)
{
- fprintf (stderr, _("%s: %s:%d: disorder: "), program_name, file,
+ fprintf (stderr, _("%s: %s:%d: disorder: "), program_name, file_name,
disorder_line_number);
write_bytes (disorder_line->text, disorder_line->length, stderr);
putc (eolchar, stderr);