From 30d11429a98facc2d11db0631fac0bb7264e217b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 5 Nov 1995 05:48:57 +0000 Subject: [PATCH] (unquote): Add casts to avoid signed char* from/to char* warnings. --- src/tr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tr.c b/src/tr.c index b39f9518e6..41f14fedf2 100644 --- a/src/tr.c +++ b/src/tr.c @@ -494,9 +494,9 @@ unquote (const unsigned char *s, struct E_string *es) size_t i, j; size_t len; - len = strlen (s); + len = strlen ((char *) s); - es->s = xmalloc (len); + es->s = (unsigned char *) xmalloc (len); es->escaped = (int *) xmalloc (len * sizeof (es->escaped[0])); for (i = 0; i < len; i++) es->escaped[i] = 0; -- 2.47.2