aboutsummaryrefslogtreecommitdiffstats
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-08-31 15:56:21 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-08-31 15:59:06 +0200
commit0c71122c0cee483a4e6abcdbe78a1595eefe86e2 (patch)
treef31e337cfc0c1c35dc1b4658ceb54894d5564047 /malloc/malloc.c
parentca4ec8039628cac6600541472b068be7535d4bb4 (diff)
downloadtermbaud-0c71122c0cee483a4e6abcdbe78a1595eefe86e2.tar.gz
termbaud-0c71122c0cee483a4e6abcdbe78a1595eefe86e2.tar.xz
termbaud-0c71122c0cee483a4e6abcdbe78a1595eefe86e2.zip
malloc: Remove the internal_function attribute
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index e1159a5bceb..1c2a0b05b78 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -999,13 +999,6 @@ int __posix_memalign(void **, size_t, size_t);
#define RETURN_ADDRESS(X_) (NULL)
#endif
-/* On some platforms we can compile internal, not exported functions better.
- Let the environment provide a macro and define it to be empty if it
- is not available. */
-#ifndef internal_function
-# define internal_function
-#endif
-
/* Forward declarations. */
struct malloc_chunk;
typedef struct malloc_chunk* mchunkptr;
@@ -1021,11 +1014,11 @@ static void* _mid_memalign(size_t, size_t, void *);
static void malloc_printerr(const char *str) __attribute__ ((noreturn));
-static void* internal_function mem2mem_check(void *p, size_t sz);
-static void top_check (void);
-static void internal_function munmap_chunk(mchunkptr p);
+static void* mem2mem_check(void *p, size_t sz);
+static void top_check(void);
+static void munmap_chunk(mchunkptr p);
#if HAVE_MREMAP
-static mchunkptr internal_function mremap_chunk(mchunkptr p, size_t new_size);
+static mchunkptr mremap_chunk(mchunkptr p, size_t new_size);
#endif
static void* malloc_check(size_t sz, const void *caller);
@@ -2830,7 +2823,6 @@ systrim (size_t pad, mstate av)
}
static void
-internal_function
munmap_chunk (mchunkptr p)
{
INTERNAL_SIZE_T size = chunksize (p);
@@ -2864,7 +2856,6 @@ munmap_chunk (mchunkptr p)
#if HAVE_MREMAP
static mchunkptr
-internal_function
mremap_chunk (mchunkptr p, size_t new_size)
{
size_t pagesize = GLRO (dl_pagesize);