summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-08-21 03:47:21 +0000
committertholo <tholo@openbsd.org>1996-08-21 03:47:21 +0000
commitf0b638ace840e8c058e7b0a96233228d81a25432 (patch)
treef8751d11ff6117107234f2ad09a38238a3ccd650 /lib/libc/stdlib/malloc.c
parentMake it even out. (diff)
downloadwireguard-openbsd-f0b638ace840e8c058e7b0a96233228d81a25432.tar.xz
wireguard-openbsd-f0b638ace840e8c058e7b0a96233228d81a25432.zip
Move cfree(3) weak symbol into a seperate file
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index a210c3f3189..b9964b9b83f 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -8,7 +8,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: malloc.c,v 1.7 1996/08/20 17:56:52 tholo Exp $";
+static char rcsid[] = "$OpenBSD: malloc.c,v 1.8 1996/08/21 03:47:22 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -24,11 +24,6 @@ static char rcsid[] = "$OpenBSD: malloc.c,v 1.7 1996/08/20 17:56:52 tholo Exp $"
*/
#define MALLOC_STATS
-/*
- * Defining CFREE_STUB will include a cfree() stub that just calls free().
- */
-#define CFREE_STUB
-
#if defined(EXTRA_SANITY) && !defined(MALLOC_STATS)
# define MALLOC_STATS /* required for EXTRA_SANITY */
#endif
@@ -1258,19 +1253,3 @@ free(ptr)
#endif
return;
}
-
-#ifdef CFREE_STUB
-
-#ifdef __indr_reference
-__indr_reference(free, cfree);
-#else /* __indr_reference */
-
-void
-cfree(p)
- void *p;
-{
- free(p);
-}
-#endif /* not __indr_reference */
-
-#endif /* CFREE_STUB */