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/cksum.c | |
parent | 391c960cba3d7207149f5148d99c068331add803 (diff) | |
download | coreutils-257c5c4737ce0399316199903ae402ae9e794a84.tar.xz |
revert back to using lower case _unlocked wrapper names
Diffstat (limited to 'src/cksum.c')
-rw-r--r-- | src/cksum.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cksum.c b/src/cksum.c index 680a67378..e34499f59 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -217,7 +217,7 @@ cksum (char *file, int print_name) } } - while ((bytes_read = FREAD (buf, 1, BUFLEN, fp)) > 0) + while ((bytes_read = fread (buf, 1, BUFLEN, fp)) > 0) { unsigned char *cp = buf; @@ -226,15 +226,15 @@ cksum (char *file, int print_name) crc = (crc << 8) ^ crctab[((crc >> 24) ^ *(cp++)) & 0xFF]; } - if (FERROR (fp)) + if (ferror (fp)) { error (0, errno, "%s", file); if (!STREQ (file, "-")) - FCLOSE (fp); + fclose (fp); return -1; } - if (!STREQ (file, "-") && FCLOSE (fp) == EOF) + if (!STREQ (file, "-") && fclose (fp) == EOF) { error (0, errno, "%s", file); return -1; @@ -252,7 +252,7 @@ cksum (char *file, int print_name) printf ("%lu %ld", crc, length); if (print_name) printf (" %s", file); - PUTCHAR ('\n'); + putchar ('\n'); return 0; } @@ -326,7 +326,7 @@ main (int argc, char **argv) errors = 1; } - if (have_read_stdin && FCLOSE (stdin) == EOF) + if (have_read_stdin && fclose (stdin) == EOF) error (EXIT_FAILURE, errno, "-"); exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } |