diff options
Diffstat (limited to 'libiberty/memcmp.c')
-rw-r--r-- | libiberty/memcmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/memcmp.c b/libiberty/memcmp.c index 127ae0c..0fd21ca 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) { |