[git commit future 1/1] malloc-simple: make _aligned_blocks static and __libc_free_aligned hidden
Khem Raj
raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=536b5d956fb74e1af074ac0992fedc6836dcb333
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
move __libc_free_aligned prototype up to a common place.
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
libc/stdlib/malloc-simple/alloc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c
index 914c89d..11d4dcf 100644
--- a/libc/stdlib/malloc-simple/alloc.c
+++ b/libc/stdlib/malloc-simple/alloc.c
@@ -17,6 +17,7 @@
#include <sys/mman.h>
#include <malloc.h>
+extern int weak_function __libc_free_aligned(void *ptr) attribute_hidden;
#ifdef L_malloc
void *malloc(size_t size)
@@ -95,7 +96,6 @@ void *realloc(void *ptr, size_t size)
#endif
#ifdef L_free
-extern int weak_function __libc_free_aligned(void *ptr);
void free(void *ptr)
{
if (unlikely(ptr == NULL))
@@ -123,7 +123,7 @@ struct alignlist
__ptr_t aligned; /* The address that memaligned returned. */
__ptr_t exact; /* The address that malloc returned. */
};
-struct alignlist *_aligned_blocks;
+static struct alignlist *_aligned_blocks;
/* Return memory to the heap. */
int __libc_free_aligned(void *ptr)
--
1.7.3.4
More information about the uClibc-cvs
mailing list