Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/string Slight cleanup - no functional change.
details: https://anonhg.NetBSD.org/src/rev/86f0f4c07bd0
branches: trunk
changeset: 467968:86f0f4c07bd0
user: simonb <simonb%NetBSD.org@localhost>
date: Thu Apr 01 00:27:49 1999 +0000
description:
Slight cleanup - no functional change.
diffstat:
lib/libc/string/bcmp.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 9aceeafb2c48 -r 86f0f4c07bd0 lib/libc/string/bcmp.c
--- a/lib/libc/string/bcmp.c Thu Apr 01 00:23:25 1999 +0000
+++ b/lib/libc/string/bcmp.c Thu Apr 01 00:27:49 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcmp.c,v 1.10 1998/03/26 23:53:36 cgd Exp $ */
+/* $NetBSD: bcmp.c,v 1.11 1999/04/01 00:27:49 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/26 23:53:36 cgd Exp $");
+__RCSID("$NetBSD: bcmp.c,v 1.11 1999/04/01 00:27:49 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