diff options
Diffstat (limited to 'lib/libc/string/bcmp.c')
| -rw-r--r-- | lib/libc/string/bcmp.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/lib/libc/string/bcmp.c b/lib/libc/string/bcmp.c index 013d0d6928b6..6c757671d0c0 100644 --- a/lib/libc/string/bcmp.c +++ b/lib/libc/string/bcmp.c @@ -37,25 +37,23 @@ static char sccsid[] = "@(#)bcmp.c	8.1 (Berkeley) 6/4/93";  #include <sys/cdefs.h>  __FBSDID("$FreeBSD$"); -#include <string.h> +#include <strings.h>  /*   * bcmp -- vax cmpc3 instruction   */  int -bcmp(b1, b2, length) -	const void *b1, *b2; -	size_t length; +bcmp(const void *b1, const void *b2, size_t length)  {  	char *p1, *p2;  	if (length == 0) -		return(0); +		return (0);  	p1 = (char *)b1;  	p2 = (char *)b2;  	do  		if (*p1++ != *p2++)  			break;  	while (--length); -	return(length); +	return (length);  } | 
