diff options
author | Bruno Haible <bruno@clisp.org> | 2020-12-12 04:18:54 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-12-12 04:18:54 +0100 |
commit | c893594d0c33139efbc8d75e43eaed487116b58b (patch) | |
tree | 6e8f5d55f44b65d6e9567822b5da2cbf24351fbf /lib/javaversion.c | |
parent | 46c7e327c76f115bbdc6eee75fffa382559aa9d8 (diff) | |
download | gnulib-c893594d0c33139efbc8d75e43eaed487116b58b.tar.gz |
sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
* lib/sh-quote.h (shell_quote_argv): Does not need write access to the
elements of argv.
* lib/sh-quote.c (shell_quote_argv): Likewise.
* lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
the return type.
* lib/windows-spawn.c (prepare_spawn): Likewise.
* lib/os2-spawn.h (prepare_spawn): Likewise.
* lib/os2-spawn.c (prepare_spawn): Likewise.
* lib/execute.h (execute): Does not need write access to the elements of
prog_argv.
* lib/execute.c (execute): Likewise.
* lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
Likewise.
* lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
create_pipe_out): Likewise.
* lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
Likewise.
* lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
* lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
* lib/javaexec.h (execute_fn): Does not need write access to the
elements of prog_argv.
* lib/javaexec.c (execute_java_class): Update variable types and remove
casts to 'char *'.
* lib/csharpexec.h (execute_fn): Does not need write access to the
elements of prog_argv.
* lib/csharpexec.c (execute_csharp_using_mono,
execute_csharp_using_sscli): Update variable types and remove casts to
'char *'.
* lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
compile_using_javac, compile_using_jikes, is_envjavac_gcj,
is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
is_jikes_present): Update variable types and remove casts to 'char *'.
* lib/javaversion.c (execute_and_read_line): Does not need write access
to the elements of prog_argv.
* lib/csharpcomp.c (compile_csharp_using_mono,
compile_csharp_using_sscli): Update variable types and remove casts to
'char *'.
* tests/test-sh-quote.c (main): Update variable types and remove casts
to 'char *'.
* tests/test-execute-main.c (main): Update variable types and remove
casts to 'char *'.
* tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
remove casts to 'char *'.
* NEWS: Mention the changes.
Diffstat (limited to 'lib/javaversion.c')
-rw-r--r-- | lib/javaversion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/javaversion.c b/lib/javaversion.c index e50c499c9b..2bfb08f662 100644 --- a/lib/javaversion.c +++ b/lib/javaversion.c @@ -52,7 +52,7 @@ struct locals static bool execute_and_read_line (const char *progname, - const char *prog_path, char **prog_argv, + const char *prog_path, const char * const *prog_argv, void *private_data) { struct locals *l = (struct locals *) private_data; |