Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-03-06 23:40:05 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-03-06 23:40:05 +0300
commit9d385fb06d0da10616c4e50873bd52456bade652 (patch)
tree14968f5178bf2607eb3b162e492d2d5cc0df365e
parent2e7d9bf906c37584962e7d89b6de55c1fec9eeb3 (diff)
2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/string/memcmp.c: Fix to avoid pointer signedness warning.
-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--)