summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-29 20:24:53 +0000
committerJim Meyering <jim@meyering.net>1995-10-29 20:24:53 +0000
commita87c7710124020f56afea5aa4d7b699e13e34e33 (patch)
tree8c4019161e3cb081368290230cfc4f4978b78da0
parenta2535fc95f785afc0727096e4a2fbf3e788fdcd2 (diff)
downloadcoreutils-a87c7710124020f56afea5aa4d7b699e13e34e33.tar.xz
(bsd_sum_file): Give file name parameter const attribute.
(sysv_sum_file): Likewise.
-rw-r--r--src/sum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sum.c b/src/sum.c
index 65920e372..f43917fb2 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -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];