diff options
author | Jim Meyering <jim@meyering.net> | 2006-10-25 01:05:30 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-10-25 01:05:30 +0200 |
commit | e81a82b74f44bfddce247d566617137725f11b19 (patch) | |
tree | 49abf1426b3f7994ed5791afac1bd798d00325b5 /src/tac.c | |
parent | 3e9cc761892d1601101e4b798046a6a5e47bc90d (diff) | |
download | coreutils-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |