diff options
author | Jim Meyering <jim@meyering.net> | 1995-10-29 20:24:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-10-29 20:24:53 +0000 |
commit | a87c7710124020f56afea5aa4d7b699e13e34e33 (patch) | |
tree | 8c4019161e3cb081368290230cfc4f4978b78da0 | |
parent | a2535fc95f785afc0727096e4a2fbf3e788fdcd2 (diff) | |
download | coreutils-a87c7710124020f56afea5aa4d7b699e13e34e33.tar.xz |
(bsd_sum_file): Give file name parameter const attribute.
(sysv_sum_file): Likewise.
-rw-r--r-- | src/sum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,7 +86,7 @@ With no FILE, or when FILE is -, read standard input.\n\ Return 0 if successful, -1 if an error occurs. */ static int -bsd_sum_file (char *file, int print_name) +bsd_sum_file (const char *file, int print_name) { register FILE *fp; register unsigned long checksum = 0; /* The checksum mod 2^16. */ @@ -146,7 +146,7 @@ bsd_sum_file (char *file, int print_name) Return 0 if successful, -1 if an error occurs. */ static int -sysv_sum_file (char *file, int print_name) +sysv_sum_file (const char *file, int print_name) { int fd; unsigned char buf[8192]; |