summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-31 02:21:13 +0000
committerJim Meyering <jim@meyering.net>1995-10-31 02:21:13 +0000
commit334f8dcbb77afed18562680e090e27e9d5bc95a7 (patch)
treefff819059802b53780d666b9acd8f592dbab122d
parent47eaf4a1e815553fef112a5afe2ebc1c00c3a15f (diff)
downloadcoreutils-334f8dcbb77afed18562680e090e27e9d5bc95a7.tar.xz
Add `const' attribute to some parameters.
-rw-r--r--src/wc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wc.c b/src/wc.c
index cfa28bbbe..17d67e587 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -91,7 +91,8 @@ read standard input.\n\
}
static void
-write_counts (long unsigned int lines, long unsigned int words, long unsigned int chars, char *file)
+write_counts (long unsigned int lines, long unsigned int words,
+ long unsigned int chars, const char *file)
{
if (print_lines)
printf ("%7lu", lines);
@@ -113,7 +114,7 @@ write_counts (long unsigned int lines, long unsigned int words, long unsigned in
}
static void
-wc (int fd, char *file)
+wc (int fd, const char *file)
{
char buf[BUFFER_SIZE + 1];
register int bytes_read;
@@ -228,7 +229,7 @@ wc (int fd, char *file)
}
static void
-wc_file (char *file)
+wc_file (const char *file)
{
if (!strcmp (file, "-"))
{