summaryrefslogtreecommitdiff
path: root/lib/sh-quote.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-02-23 12:31:00 +0100
committerBruno Haible <bruno@clisp.org>2020-02-23 12:31:00 +0100
commita85a39de0293d492a6a087c356f4e3a26e0d1cee (patch)
treed7bc86dd3cd9b509a264e3cc804893ac9107b018 /lib/sh-quote.h
parent90106dbaf4b8881139bb3e567da8bbc1bad2055f (diff)
downloadgnulib-a85a39de0293d492a6a087c356f4e3a26e0d1cee.tar.gz
sh-quote: Use 'restrict'.
* lib/sh-quote.h (shell_quote_copy): Use 'restrict'. * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
Diffstat (limited to 'lib/sh-quote.h')
-rw-r--r--lib/sh-quote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sh-quote.h b/lib/sh-quote.h
index 9dcd4cfe41..8b06355835 100644
--- a/lib/sh-quote.h
+++ b/lib/sh-quote.h
@@ -33,7 +33,7 @@ extern size_t shell_quote_length (const char *string);
/* Copies the quoted string to p and returns the incremented p.
There must be room for shell_quote_length (string) + 1 bytes at p. */
-extern char * shell_quote_copy (char *p, const char *string);
+extern char * shell_quote_copy (char *restrict p, const char *string);
/* Returns the freshly allocated quoted string. */
extern char * shell_quote (const char *string);