aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-14 02:35:25 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-14 02:35:25 +0100
commit567f95688269e7255bce779c44d93ed587867086 (patch)
treeaf56d431baf727f0e2fe14877b3d6dce64d423f7 /src
parentm (diff)
downloadslibc-567f95688269e7255bce779c44d93ed587867086.tar.gz
slibc-567f95688269e7255bce779c44d93ed587867086.tar.bz2
slibc-567f95688269e7255bce779c44d93ed587867086.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/slibc-human/escape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slibc-human/escape.c b/src/slibc-human/escape.c
index ea93108..e3be732 100644
--- a/src/slibc-human/escape.c
+++ b/src/slibc-human/escape.c
@@ -37,11 +37,11 @@
* @throws EINVAL If `quote` is invalid.
* @throws ENOMEM The process cannot allocate more memory.
*/
-char* escape(const char* str, char quote)
+char* escape(const char* restrict str, char quote)
{
- char* r;
- char* w;
- char* rc;
+ const char* restrict r;
+ char* restrict w;
+ char* restrict rc;
size_t extra = 1, len, size;
unsigned char c;