diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-15 18:24:41 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-15 18:24:41 +0000 |
commit | 8c45b4d4abd9401da3d6e3f10a9c3d4663174ea8 (patch) | |
tree | 2e15c1ade12cb8372d0cd85485d60867f1b83340 /lib/libc/stdlib | |
parent | f8d94b520e5d3426f821a1376ec11ee89949595c (diff) |
Wrap _malloc_init() so internal calls go directly
prodded by otto@
ok kettenis@ otto@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index dc32420ffc3..7e7364f4844 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.201 2016/10/14 17:33:36 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.202 2016/10/15 18:24:40 guenther Exp $ */ /* * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net> * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> @@ -1249,6 +1249,7 @@ _malloc_init(int from_rthreads) mprotect(&malloc_readonly, sizeof(malloc_readonly), PROT_READ); _MALLOC_UNLOCK(0); } +DEF_STRONG(_malloc_init); void * malloc(size_t size) |