Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern Sync with src/lib/libc/string/bcmp.c
details: https://anonhg.NetBSD.org/src/rev/8fa9695e2c2c
branches: trunk
changeset: 467969:8fa9695e2c2c
user: simonb <simonb%NetBSD.org@localhost>
date: Thu Apr 01 00:30:39 1999 +0000
description:
Sync with src/lib/libc/string/bcmp.c
diffstat:
sys/lib/libkern/bcmp.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 86f0f4c07bd0 -r 8fa9695e2c2c sys/lib/libkern/bcmp.c
--- a/sys/lib/libkern/bcmp.c Thu Apr 01 00:27:49 1999 +0000
+++ b/sys/lib/libkern/bcmp.c Thu Apr 01 00:30:39 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcmp.c,v 1.10 1998/03/27 01:29:59 cgd Exp $ */
+/* $NetBSD: bcmp.c,v 1.11 1999/04/01 00:30:39 simonb Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)bcmp.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: bcmp.c,v 1.10 1998/03/27 01:29:59 cgd Exp $");
+__RCSID("$NetBSD: bcmp.c,v 1.11 1999/04/01 00:30:39 simonb Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -56,12 +56,10 @@
const void *b1, *b2;
size_t length;
{
- const char *p1, *p2;
+ const char *p1 = b1, *p2 = b2;
if (length == 0)
return(0);
- p1 = (const char *)b1;
- p2 = (const char *)b2;
do
if (*p1++ != *p2++)
break;
Home |
Main Index |
Thread Index |
Old Index