From 0100805af1e0ed65a07fa0630788d545c304755b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 2 Aug 2016 16:16:23 -0400 Subject: [PATCH] Port regex changes to strict ISO C * src/regex.c (regex_compile): Redo casts. --- src/regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex.c b/src/regex.c index f7ca51184b3..f0129241cfe 100644 --- a/src/regex.c +++ b/src/regex.c @@ -2618,8 +2618,8 @@ regex_compile (const_re_char *pattern, size_t size, main_p = p1; main_pend = pend; main_pattern = pattern; - p = pattern = whitespace_regexp; - pend = p + strlen ((const char *) p); + p = pattern = (re_char *) whitespace_regexp; + pend = p + strlen (whitespace_regexp); break; } #endif -- 2.39.2