From 56f0a30f9b014df71afb8cd90cd234d9c3c6c87e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 15 Feb 2019 12:38:49 +0100 Subject: [PATCH] LibC: Actually, malloc() can return null so don't lie about that. --- LibC/stdlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LibC/stdlib.h b/LibC/stdlib.h index a07477008f..064ce160f6 100644 --- a/LibC/stdlib.h +++ b/LibC/stdlib.h @@ -9,10 +9,10 @@ __BEGIN_DECLS #define EXIT_FAILURE 1 #define MB_CUR_MAX 1 -[[gnu::malloc, gnu::returns_nonnull, gnu::alloc_size(1)]] void* malloc(size_t); -[[gnu::malloc, gnu::returns_nonnull, gnu::alloc_size(1, 2)]] void* calloc(size_t nmemb, size_t); +[[gnu::malloc, gnu::alloc_size(1)]] void* malloc(size_t); +[[gnu::malloc, gnu::alloc_size(1, 2)]] void* calloc(size_t nmemb, size_t); void free(void*); -[[gnu::returns_nonnull]] void* realloc(void *ptr, size_t); +void* realloc(void *ptr, size_t); char* getenv(const char* name); int atoi(const char*); long atol(const char*);