summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibC/malloc.cpp2
-rw-r--r--Userland/Libraries/LibC/stdlib.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/malloc.cpp b/Userland/Libraries/LibC/malloc.cpp
index a059e55895..376cd717c1 100644
--- a/Userland/Libraries/LibC/malloc.cpp
+++ b/Userland/Libraries/LibC/malloc.cpp
@@ -500,7 +500,7 @@ void* calloc(size_t count, size_t size)
return ptr;
}
-size_t malloc_size(void* ptr)
+size_t malloc_size(void const* ptr)
{
MemoryAuditingSuppressor suppressor;
if (!ptr)
diff --git a/Userland/Libraries/LibC/stdlib.h b/Userland/Libraries/LibC/stdlib.h
index abab2a44cb..cfb7e19729 100644
--- a/Userland/Libraries/LibC/stdlib.h
+++ b/Userland/Libraries/LibC/stdlib.h
@@ -20,7 +20,7 @@ __attribute__((noreturn)) void _abort(void);
__attribute__((malloc)) __attribute__((alloc_size(1))) void* malloc(size_t);
__attribute__((malloc)) __attribute__((alloc_size(1, 2))) void* calloc(size_t nmemb, size_t);
-size_t malloc_size(void*);
+size_t malloc_size(void const*);
size_t malloc_good_size(size_t);
void serenity_dump_malloc_stats(void);
void free(void*);