Synced with libiberty in the gcc repository.
[binutils-gdb.git] / libiberty / memcmp.c
index 127ae0c8019d237429add30809d2a4016855e86d..0fd21cad11edcee49c403dbac179ed7efccd56cf 100644 (file)
@@ -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)
     {