chiark / gitweb /
cli.c: Make a fixed string const-correct
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2019 01:42:43 +0000 (01:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2019 01:42:43 +0000 (01:42 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cli.c

diff --git a/cli.c b/cli.c
index f365991..7ca7f33 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -140,8 +140,8 @@ int main(int argc, char **argv)
 {
        size_t buf_size = 65536;        /* buffer memory defaults to 64 KiB */
        int flags = init_flags(*argv);
-       char *ifile = "from standard input";
-       char *ofile = NULL;
+       const char *ifile = "from standard input";
+       const char *ofile = NULL;
        int opt;
        struct option longopts[8] = {
                {"decode", no_argument, NULL, 'd'},