Remove register keyword and constify tmp values. This fixes

PPC compile warning - PPC is the only consumer of this code
path.
This commit is contained in:
Peter Grehan 2004-02-12 03:23:13 +00:00
parent f662a93197
commit 9a580b5e18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125725

View File

@ -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;