Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa An ever sneakier way of making memcmp and bcmp...
details: https://anonhg.NetBSD.org/src/rev/b572a11145c4
branches: trunk
changeset: 551039:b572a11145c4
user: dsl <dsl%NetBSD.org@localhost>
date: Wed Aug 27 22:53:18 2003 +0000
description:
An ever sneakier way of making memcmp and bcmp use the same code:
__strong_alias(memcmp,bcmp)
diffstat:
sys/lib/libsa/memcmp.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (22 lines):
diff -r 101ee7a49f44 -r b572a11145c4 sys/lib/libsa/memcmp.c
--- a/sys/lib/libsa/memcmp.c Wed Aug 27 22:42:08 2003 +0000
+++ b/sys/lib/libsa/memcmp.c Wed Aug 27 22:53:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: memcmp.c,v 1.6 1999/11/13 21:17:56 thorpej Exp $ */
+/* $NetBSD: memcmp.c,v 1.7 2003/08/27 22:53:18 dsl Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -47,11 +47,4 @@
/*
* Cheezy memcmp(), as a wrapper around bcmp()
*/
-int
-memcmp(b1, b2, len)
- const void *b1, *b2;
- size_t len;
-{
-
- return (bcmp(b1, b2, len));
-}
+__strong_alias(bcmp, memcmp)
Home |
Main Index |
Thread Index |
Old Index