]> git.refcnt.org Git - colorize.git/commitdiff
Const pointers
authorSteven Schubiger <stsc@refcnt.org>
Wed, 23 May 2018 18:33:27 +0000 (20:33 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Wed, 23 May 2018 18:33:27 +0000 (20:33 +0200)
colorize.c

index 9c30aeb6b6203672ac372267c97c386825cb7cfc..d7d014ffb48f3817624b4e3fdc87531920344020 100644 (file)
@@ -339,8 +339,8 @@ main (int argc, char **argv)
           vfprintf_fail (formats[FMT_GENERIC], "--clean and --clean-all switch are mutually exclusive");
         if (arg_cnt > 1)
           {
-            const char *format = "%s %s";
-            const char *message = "switch cannot be used with more than one file";
+            const char *const format = "%s %s";
+            const char *const message = "switch cannot be used with more than one file";
             if (clean)
               vfprintf_fail (format, "--clean", message);
             else if (clean_all)