summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-31 02:21:37 +0000
committerJim Meyering <jim@meyering.net>1995-10-31 02:21:37 +0000
commitb0302bb3a61f0a8cebe324fb7cc80b166bd0d249 (patch)
treec334af3546e8b2f2f80b04552eca18b3493f9699 /src
parent334f8dcbb77afed18562680e090e27e9d5bc95a7 (diff)
downloadcoreutils-b0302bb3a61f0a8cebe324fb7cc80b166bd0d249.tar.xz
Add `const' attribute to some parameters.
Diffstat (limited to 'src')
-rw-r--r--src/uniq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uniq.c b/src/uniq.c
index 86b3d0447..10c36d194 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -123,7 +123,7 @@ Fields are skipped before chars. \n\
return a pointer to the beginning of the line's field to be compared. */
static char *
-find_field (struct linebuffer *line)
+find_field (const struct linebuffer *line)
{
register int count;
register char *lp = line->buffer;
@@ -150,7 +150,7 @@ find_field (struct linebuffer *line)
OLDLEN and NEWLEN are their lengths. */
static int
-different (char *old, char *new, int oldlen, int newlen)
+different (const char *old, const char *new, int oldlen, int newlen)
{
register int order;
@@ -173,7 +173,7 @@ different (char *old, char *new, int oldlen, int newlen)
LINECOUNT + 1 is the number of times that the line occurred. */
static void
-writeline (struct linebuffer *line, FILE *stream, int linecount)
+writeline (const struct linebuffer *line, FILE *stream, int linecount)
{
if ((mode == output_unique && linecount != 0)
|| (mode == output_repeated && linecount == 0))
@@ -190,7 +190,7 @@ writeline (struct linebuffer *line, FILE *stream, int linecount)
If either is "-", use the standard I/O stream for it instead. */
static void
-check_file (char *infile, char *outfile)
+check_file (const char *infile, const char *outfile)
{
FILE *istream;
FILE *ostream;