summaryrefslogtreecommitdiff
path: root/src/head.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/head.c
parent02fc5fa0d0a68fa070dcb93983ad20590e051164 (diff)
downloadcoreutils-dd9470cb58f9c668279aa8dab8164440b73daaad.tar.xz
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
Diffstat (limited to 'src/head.c')
-rw-r--r--src/head.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/head.c b/src/head.c
index 3052df197..0be7ca665 100644
--- a/src/head.c
+++ b/src/head.c
@@ -136,7 +136,7 @@ head_bytes (const char *filename, int fd, U_LONG_LONG bytes_to_write)
break;
if (bytes_read > bytes_to_write)
bytes_read = bytes_to_write;
- if (fwrite (buffer, 1, bytes_read, stdout) == 0)
+ if (FWRITE (buffer, 1, bytes_read, stdout) == 0)
error (EXIT_FAILURE, errno, _("write error"));
bytes_to_write -= bytes_read;
}
@@ -164,7 +164,7 @@ head_lines (const char *filename, int fd, U_LONG_LONG lines_to_write)
while (bytes_to_write < bytes_read)
if (buffer[bytes_to_write++] == '\n' && --lines_to_write == 0)
break;
- if (fwrite (buffer, 1, bytes_to_write, stdout) == 0)
+ if (FWRITE (buffer, 1, bytes_to_write, stdout) == 0)
error (EXIT_FAILURE, errno, _("write error"));
}
return 0;
@@ -388,7 +388,7 @@ main (int argc, char **argv)
if (have_read_stdin && close (0) < 0)
error (EXIT_FAILURE, errno, "-");
- if (fclose (stdout) == EOF)
+ if (FCLOSE (stdout) == EOF)
error (EXIT_FAILURE, errno, _("write error"));
exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);