From e4c385d0df12e3cae1ffab3235a8db4be23919c0 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 19 May 2021 10:12:41 +0200 Subject: [PATCH] stdlib: safeguard prototypes against user-defined macros --- include/stdlib.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index 8dd0dd5..cab010d 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -7,25 +7,25 @@ /* Dynamic memory management. */ /* Allocate SIZE bytes of memory. */ -extern void *malloc(size_t size); +extern void *malloc(size_t __size); /* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */ -extern void *calloc(size_t nmemb, size_t size); +extern void *calloc(size_t __nmemb, size_t __size); /* ** Re-allocate the previously allocated block in PTR, making the new block ** SIZE bytes long. */ -extern void *realloc(void *ptr, size_t size); +extern void *realloc(void *__ptr, size_t __size); /* ** Re-allocate the previously allocated block in PTR, making the new block large ** enough for NMEMB elements of SIZE bytes each. */ -extern void *reallocarray(void *ptr, size_t nmemb, size_t size); +extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size); /* Free a block allocated by `malloc', `realloc' or `calloc'. */ -extern void free(void *ptr); +extern void free(void *__ptr); /* Integer arithmetic functions. */