summaryrefslogtreecommitdiff
path: root/src/tac.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-10-25 01:05:30 +0200
committerJim Meyering <jim@meyering.net>2006-10-25 01:05:30 +0200
commite81a82b74f44bfddce247d566617137725f11b19 (patch)
tree49abf1426b3f7994ed5791afac1bd798d00325b5 /src/tac.c
parent3e9cc761892d1601101e4b798046a6a5e47bc90d (diff)
downloadcoreutils-e81a82b74f44bfddce247d566617137725f11b19.tar.xz
* src/cat.c (infile): Add "const" to declaration.
* src/csplit.c (prefix): Likewise. * src/printf.c (cfcc_msg): Likewise. * src/tail.c (valid_file_spec): Likewise. * src/cut.c (cut_file): Likewise, for a parameter. * src/expr.c (str_value): Likewise. * src/fold.c (fold_file): Likewise. * src/pr.c (init_header): Likewise. * src/dircolors.c (dc_parse_stream): Likewise, for a local. * src/tr.c (make_printable_str): Likewise. * src/nl.c (body_type, header_type, footer_type, current_type): (separator_str, build_type_arg, nl_file): Likewise, for many. * src/paste.c (main): Don't assign a read-only string to 'optarg'. * src/tac.c (separator, tac_seekable, copy_to_temp): Likewise.
Diffstat (limited to 'src/tac.c')
-rw-r--r--src/tac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tac.c b/src/tac.c
index b3777b21a..dc166aaa3 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -78,7 +78,7 @@ tac -r -s '.\|
char *program_name;
/* The string that separates the records of the file. */
-static char *separator;
+static char const *separator;
/* True if we have ever read standard input. */
static bool have_read_stdin = false;
@@ -211,7 +211,7 @@ tac_seekable (int input_fd, const char *file)
Only used when the separator is attached to the preceding record. */
bool first_time = true;
char first_char = *separator; /* Speed optimization, non-regexp. */
- char *separator1 = separator + 1; /* Speed optimization, non-regexp. */
+ char const *separator1 = separator + 1; /* Speed optimization, non-regexp. */
size_t match_length1 = match_length - 1; /* Speed optimization, non-regexp. */
struct re_registers regs;
@@ -426,7 +426,7 @@ static bool
copy_to_temp (FILE **g_tmp, char **g_tempfile, int input_fd, char const *file)
{
static char *template = NULL;
- static char *tempdir;
+ static char const *tempdir;
char *tempfile;
FILE *tmp;
int fd;