diff options
author | Jim Meyering <jim@meyering.net> | 1998-06-29 15:57:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-06-29 15:57:45 +0000 |
commit | 257c5c4737ce0399316199903ae402ae9e794a84 (patch) | |
tree | 649dc55a3e71f5f0cc99fa9b3cb1bfe460536e38 /src/uniq.c | |
parent | 391c960cba3d7207149f5148d99c068331add803 (diff) | |
download | coreutils-257c5c4737ce0399316199903ae402ae9e794a84.tar.xz |
revert back to using lower case _unlocked wrapper names
Diffstat (limited to 'src/uniq.c')
-rw-r--r-- | src/uniq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/uniq.c b/src/uniq.c index c3cb7a9bb..272611254 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -195,8 +195,8 @@ writeline (const struct linebuffer *line, FILE *stream, int linecount) if (countmode == count_occurrences) fprintf (stream, "%7d\t", linecount + 1); - FWRITE (line->buffer, sizeof (char), line->length, stream); - PUTC ('\n', stream); + fwrite (line->buffer, sizeof (char), line->length, stream); + putc ('\n', stream); } /* Process input file INFILE with output to OUTFILE. @@ -238,7 +238,7 @@ check_file (const char *infile, const char *outfile) prevfield = find_field (prevline); prevlen = prevline->length - (prevfield - prevline->buffer); - while (!FEOF (istream)) + while (!feof (istream)) { if (readline (thisline, istream) == 0) break; @@ -262,10 +262,10 @@ check_file (const char *infile, const char *outfile) writeline (prevline, ostream, match_count); closefiles: - if (FERROR (istream) || fclose (istream) == EOF) + if (ferror (istream) || fclose (istream) == EOF) error (EXIT_FAILURE, errno, _("error reading %s"), infile); - if (FERROR (ostream) || fclose (ostream) == EOF) + if (ferror (ostream) || fclose (ostream) == EOF) error (EXIT_FAILURE, errno, _("error writing %s"), outfile); free (lb1.buffer); |