summaryrefslogtreecommitdiff
path: root/src/uniq.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-06-29 02:11:07 +0000
committerJim Meyering <jim@meyering.net>1998-06-29 02:11:07 +0000
commitdd9470cb58f9c668279aa8dab8164440b73daaad (patch)
treecf22a0d981deca2485740b4b6ec6efd6ae15793d /src/uniq.c
parent02fc5fa0d0a68fa070dcb93983ad20590e051164 (diff)
downloadcoreutils-dd9470cb58f9c668279aa8dab8164440b73daaad.tar.xz
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
Diffstat (limited to 'src/uniq.c')
-rw-r--r--src/uniq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/uniq.c b/src/uniq.c
index 272611254..c3cb7a9bb 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);