From: Jim Meyering Date: Sat, 19 Jul 1997 15:08:53 +0000 (+0000) Subject: (checkfp): tweak comment X-Git-Tag: SH-UTILS-1_16d~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1ee29eac32f3a0748c3a629303833cd63b6d554;p=thirdparty%2Fcoreutils.git (checkfp): tweak comment --- diff --git a/src/sort.c b/src/sort.c index b1b8893a8c..b3b7e17170 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);