+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.
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. */
/* 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;
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. */