From dd9470cb58f9c668279aa8dab8164440b73daaad Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 29 Jun 1998 02:11:07 +0000 Subject: Change all uses of unlocked-wrapped functions to their upper case wrapper names. --- src/head.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/head.c') 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); -- cgit v1.2.3-70-g09d2