summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorYann Sionneau <ysionneau@kalray.eu>2020-09-22 12:16:59 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2020-09-22 13:54:04 (GMT)
commit9f54321e2ef9011e499a898cacf03960540ddad4 (patch)
treeac923412b994e4d312bba5f74366a48227de1936 /libc
parent05c39a2243c336600e9051743ba9b64b3d3aa0b4 (diff)
Fix warning about missing const qualifier
Fixes this: In file included from libc/misc/fnmatch/fnmatch.c:235:0: libc/misc/fnmatch/fnmatch_loop.c: In function 'internal_fnmatch': libc/misc/fnmatch/fnmatch_loop.c:207:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] CHAR *p_init = p; ^ libc/misc/fnmatch/fnmatch_loop.c:208:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] CHAR *n_init = n; Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/fnmatch/fnmatch_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/fnmatch/fnmatch_loop.c b/libc/misc/fnmatch/fnmatch_loop.c
index a09cfbb..fdd451d 100644
--- a/libc/misc/fnmatch/fnmatch_loop.c
+++ b/libc/misc/fnmatch/fnmatch_loop.c
@@ -204,8 +204,8 @@ FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end,
case L('['):
{
/* Nonzero if the sense of the character class is inverted. */
- CHAR *p_init = p;
- CHAR *n_init = n;
+ const CHAR *p_init = p;
+ const CHAR *n_init = n;
register int not;
CHAR cold;
UCHAR fn;