summaryrefslogtreecommitdiff
path: root/libiberty/memcmp.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2000-06-15 20:56:25 +0000
committerH.J. Lu <hjl@lucon.org>2000-06-15 20:56:25 +0000
commitcebb9a4667261b7d10f4cc646801b7885eacc51d (patch)
treece230ec8669d2528ed6a237bfd8a633da145c7b9 /libiberty/memcmp.c
parent4a43e8d841ca963132c00754348d10d05fcc7111 (diff)
downloadgdb-cebb9a4667261b7d10f4cc646801b7885eacc51d.tar.gz
Synced with libiberty in the gcc repository.
Diffstat (limited to 'libiberty/memcmp.c')
-rw-r--r--libiberty/memcmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/memcmp.c b/libiberty/memcmp.c
index 127ae0c8019..0fd21cad11e 100644
--- a/libiberty/memcmp.c
+++ b/libiberty/memcmp.c
@@ -25,8 +25,8 @@ int
DEFUN(memcmp, (str1, str2, count),
const PTR str1 AND const PTR str2 AND size_t count)
{
- register unsigned char *s1 = (unsigned char*)str1;
- register unsigned char *s2 = (unsigned char*)str2;
+ register const unsigned char *s1 = (const unsigned char*)str1;
+ register const unsigned char *s2 = (const unsigned char*)str2;
while (count-- > 0)
{