diff options
author | 2015-09-13 20:29:23 +0000 | |
---|---|---|
committer | 2015-09-13 20:29:23 +0000 | |
commit | 55148231f02e995bbce8c1624be9d6cecb6e3ddd (patch) | |
tree | e8218546d2755512854d2580f31593f3ad6c6c94 /lib/libc/stdlib/malloc.c | |
parent | Revise regression test so that it works correctly with AES taking priority (diff) | |
download | wireguard-openbsd-55148231f02e995bbce8c1624be9d6cecb6e3ddd.tar.xz wireguard-openbsd-55148231f02e995bbce8c1624be9d6cecb6e3ddd.zip |
For now, permit overriding of the malloc family, to make emacs happy
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 0967fe3a088..dd4c487241a 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.175 2015/09/13 08:31:47 guenther Exp $ */ +/* $OpenBSD: malloc.c,v 1.176 2015/09/13 20:29:23 guenther Exp $ */ /* * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> @@ -1187,7 +1187,7 @@ malloc(size_t size) errno = saved_errno; return r; } -DEF_STRONG(malloc); +/*DEF_STRONG(malloc);*/ static void ofree(void *p) @@ -1291,7 +1291,7 @@ free(void *ptr) _MALLOC_UNLOCK(); errno = saved_errno; } -DEF_STRONG(free); +/*DEF_STRONG(free);*/ static void * @@ -1432,7 +1432,7 @@ realloc(void *ptr, size_t size) errno = saved_errno; return r; } -DEF_STRONG(realloc); +/*DEF_STRONG(realloc);*/ /* @@ -1480,7 +1480,7 @@ calloc(size_t nmemb, size_t size) errno = saved_errno; return r; } -DEF_STRONG(calloc); +/*DEF_STRONG(calloc);*/ static void * mapalign(struct dir_info *d, size_t alignment, size_t sz, int zero_fill) @@ -1614,7 +1614,7 @@ err: errno = saved_errno; return res; } -DEF_STRONG(posix_memalign); +/*DEF_STRONG(posix_memalign);*/ #ifdef MALLOC_STATS |