summaryrefslogtreecommitdiff
path: root/src/tac.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-29 20:38:01 +0000
committerJim Meyering <jim@meyering.net>1995-10-29 20:38:01 +0000
commit40f0f4d2e88a03c86a63c7fe063195726e98b42e (patch)
treeb1fbabfa55e50afd566b857f16292242e080228c /src/tac.c
parent4fa07774d6eb145d36d524f393383849f9fd4d4b (diff)
downloadcoreutils-40f0f4d2e88a03c86a63c7fe063195726e98b42e.tar.xz
(xwrite): Give output buffer parameter const attribute.
(output): Likewise for both parameters. (tac): Likewise for file name parameter. (tac_file): Likewise.
Diffstat (limited to 'src/tac.c')
-rw-r--r--src/tac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tac.c b/src/tac.c
index 9a5d17203..ab7756d99 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -183,7 +183,7 @@ xrealloc (char *p, unsigned int n)
}
static void
-xwrite (int desc, char *buffer, int size)
+xwrite (int desc, const char *buffer, int size)
{
if (full_write (desc, buffer, size) < 0)
{
@@ -196,7 +196,7 @@ xwrite (int desc, char *buffer, int size)
If START is NULL, just flush the buffer. */
static void
-output (char *start, char *past_end)
+output (const char *start, const char *past_end)
{
static char buffer[WRITESIZE];
static int bytes_in_buffer = 0;
@@ -229,7 +229,7 @@ output (char *start, char *past_end)
Return 0 if ok, 1 if an error occurs. */
static int
-tac (int fd, char *file)
+tac (int fd, const char *file)
{
/* Pointer to the location in `buffer' where the search for
the next separator will begin. */
@@ -396,7 +396,7 @@ tac (int fd, char *file)
Return 0 if ok, 1 if an error occurs. */
static int
-tac_file (char *file)
+tac_file (const char *file)
{
int fd, errors;