summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/libkern/bcmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libkern/bcmp.c b/sys/libkern/bcmp.c
index ddaaba1..6800ccc 100644
--- a/sys/libkern/bcmp.c
+++ b/sys/libkern/bcmp.c
@@ -135,12 +135,12 @@ bcmp(b1, b2, length)
& ((1L << (len << 3)) - 1)) != 0);
}
#else
- register char *p1, *p2;
+ const char *p1, *p2;
if (length == 0)
return(0);
- p1 = (char *)b1;
- p2 = (char *)b2;
+ p1 = b1;
+ p2 = b2;
do
if (*p1++ != *p2++)
break;
OpenPOWER on IntegriCloud