* lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
* lib/sh-quote.c (shell_quote_argv): Likewise.
+2012-05-06 Bruno Haible <bruno@clisp.org>
+
+ sh-quote: Improve shell_quote_argv's signature.
+ * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
+ * lib/sh-quote.c (shell_quote_argv): Likewise.
+
2012-05-06 Paul Eggert <eggert@cs.ucla.edu>
stdint: document issues with int_fast8_t etc.
/* Returns a freshly allocated string containing all argument strings, quoted,
separated through spaces. */
char *
-shell_quote_argv (char **argv)
+shell_quote_argv (char * const *argv)
{
if (*argv != NULL)
{
- char **argp;
+ char * const *argp;
size_t length;
char *command;
char *p;
/* Returns a freshly allocated string containing all argument strings, quoted,
separated through spaces. */
-extern char * shell_quote_argv (char **argv);
+extern char * shell_quote_argv (char * const *argv);