summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-02-12 03:23:13 +0000
committergrehan <grehan@FreeBSD.org>2004-02-12 03:23:13 +0000
commit13547d8fdcf9c2c03bac24080ab34a1000856f40 (patch)
treef087dc2c930a7bf043f5209a8ae2c4d822ca0f8c /sys
parent5004ca437d6e34eda61e95f5c8b4c0773b149a6d (diff)
downloadFreeBSD-src-13547d8fdcf9c2c03bac24080ab34a1000856f40.zip
FreeBSD-src-13547d8fdcf9c2c03bac24080ab34a1000856f40.tar.gz
Remove register keyword and constify tmp values. This fixes
PPC compile warning - PPC is the only consumer of this code path.
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