summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl
diff options
context:
space:
mode:
authorAschref Ben Thabet <aschref.ben-thabet@embedded-brains.de>2020-08-18 17:31:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-20 07:44:33 +0200
commitcbfdcba5551a93ed6b3b6dfe965fd556cbb9837a (patch)
tree6cff7e16c970b1eda167068d68ba5f6fa7149a15 /cpukit/libdl
parentada: Add missing attributes (diff)
downloadrtems-cbfdcba5551a93ed6b3b6dfe965fd556cbb9837a.tar.bz2
Fix -Wchar-subscripts warnings
The argument to the ctype functions must be an int and the value of the character must be representable as an unsigned char or equal to the value of the macro EOF. If the argument has any other value, the behavior is undefined.
Diffstat (limited to 'cpukit/libdl')
-rw-r--r--cpukit/libdl/rtl-archive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libdl/rtl-archive.c b/cpukit/libdl/rtl-archive.c
index eb7641b034..6eba1585b6 100644
--- a/cpukit/libdl/rtl-archive.c
+++ b/cpukit/libdl/rtl-archive.c
@@ -516,13 +516,13 @@ rtems_rtl_archives_load_config (rtems_rtl_archives* archives)
{
size_t ls = strlen (&s[r]);
size_t b = 0;
- while (b < ls && isspace (s[r + b]))
+ while (b < ls && isspace ((unsigned char) s[r + b]))
{
s[r + b] = '\0';
++b;
}
b = ls - 1;
- while (b > 0 && isspace (s[r + b]))
+ while (b > 0 && isspace ((unsigned char) s[r + b]))
{
s[r + b] = '\0';
--b;