summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-16 14:38:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-16 19:34:30 +0100
commit14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6 (patch)
tree189d6c3e15f90c34e7ad9a1dbce272b357a9bfcd
parent3b80191f3348d109bcebb8e13f1bd81aa8f91be6 (diff)
downloadcygnal-14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6.tar.gz
cygnal-14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6.tar.bz2
cygnal-14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6.zip
Fix return type of __locale_ctype_ptr_l()
This prevents warnings like this: ctype.h:118:9: warning: return discards 'const' qualifier from pointer target type
-rw-r--r--newlib/libc/include/ctype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h
index 8b1013ac0..932a567e2 100644
--- a/newlib/libc/include/ctype.h
+++ b/newlib/libc/include/ctype.h
@@ -111,7 +111,7 @@ const char *__locale_ctype_ptr (void);
#ifdef __HAVE_LOCALE_INFO__
const char *__locale_ctype_ptr_l (locale_t);
#else
-static __inline char *
+static __inline const char *
__locale_ctype_ptr_l(locale_t _l)
{
(void)_l;