]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a gcc warning.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2009 08:11:56 +0000 (10:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2009 13:19:33 +0000 (15:19 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgfilter.c

index c5ba9fcd3c8f50292ba0e7a21fb6785ed3718d32..b84f43d25e6e8296ae5bca2d9be49a5ab41ecec7 100644 (file)
@@ -1,3 +1,9 @@
+2009-08-10  Bruno Haible  <bruno@clisp.org>
+
+       Avoid a gcc warning.
+       * msgfilter.c (sub_argv): Change type to 'const char **'.
+       (main): Update.
+
 2009-08-10  Bruno Haible  <bruno@clisp.org>
 
        Use type 'ucs4_t' more often. Avoids gcc warnings on Cygwin.
index 88662ba0e9ae58c538fa1d8f9a1f4d0c9e2799fb..3fe7525e22a8cc49f79c09e92efc3faa6f39d8e9 100644 (file)
@@ -77,7 +77,7 @@ static const char *sub_name;
 static const char *sub_path;
 
 /* Argument list for the subprogram.  */
-static char **sub_argv;
+static const char **sub_argv;
 static int sub_argc;
 
 /* Filter function.  */
@@ -288,7 +288,7 @@ There is NO WARRANTY, to the extent permitted by law.\n\
 
   /* Build argument list for the program.  */
   sub_argc = argc - optind;
-  sub_argv = XNMALLOC (sub_argc + 1, char *);
+  sub_argv = XNMALLOC (sub_argc + 1, const char *);
   for (i = 0; i < sub_argc; i++)
     sub_argv[i] = argv[optind + i];
   sub_argv[i] = NULL;
@@ -345,7 +345,7 @@ There is NO WARRANTY, to the extent permitted by law.\n\
       sub_path = find_in_path (sub_name);
 
       /* Finish argument list for the program.  */
-      sub_argv[0] = (char *) sub_path;
+      sub_argv[0] = sub_path;
     }
 
   /* Apply the subprogram.  */