summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/string/memcmp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 38707e878..95c92a5ce 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
+ * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
+
+2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
+
* libc/include/machine/_types.h: New file.
* libc/include/sys/types.h: Do not check for __rtems__
when including <machine/_types.h>. Remove some redundant
diff --git a/newlib/libc/string/memcmp.c b/newlib/libc/string/memcmp.c
index ac7a194a6..4a871fa60 100644
--- a/newlib/libc/string/memcmp.c
+++ b/newlib/libc/string/memcmp.c
@@ -95,8 +95,8 @@ _DEFUN (memcmp, (m1, m2, n),
/* check m mod LBLOCKSIZE remaining characters */
- s1 = (char*)a1;
- s2 = (char*)a2;
+ s1 = (unsigned char*)a1;
+ s2 = (unsigned char*)a2;
}
while (n--)