diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-05-29 16:07:14 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-05-29 16:07:14 -0400 |
| commit | 824f22a3684209b1e11c87f20e6ff17beb8e73a3 (patch) | |
| tree | 591521c80a1cc771da5dc37d5bdfee5b89a3bb73 /src/stdlib/realloc.c | |
| parent | c9ec058657f9f8b3fd39a16f1a9e993b4a1e982e (diff) | |
finish integrating jkmalloc and read-only variable support
Diffstat (limited to 'src/stdlib/realloc.c')
| -rw-r--r-- | src/stdlib/realloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stdlib/realloc.c b/src/stdlib/realloc.c index 35e12d26..9bac9c5d 100644 --- a/src/stdlib/realloc.c +++ b/src/stdlib/realloc.c @@ -8,9 +8,11 @@ void * realloc(void * ptr, size_t size) { SIGNAL_SAFE(0); - return __jkmalloc(NULL, NULL, 0, ptr, 1, size, 0, NULL); + return __jkmalloc(ptr, 1, size, 0, NULL); } +CHECK_2(void *, NULL, realloc, void *, size_t) + /*** changes the amount of memory allocated to ARGUMENT(ptr) to ARGUMENT(size) bytes. |
