]> git.lizzy.rs Git - nothing.git/commitdiff
Remove nth_realloc
authorrexim <reximkut@gmail.com>
Sun, 5 Jan 2020 16:29:37 +0000 (23:29 +0700)
committerrexim <reximkut@gmail.com>
Sun, 5 Jan 2020 16:29:37 +0000 (23:29 +0700)
src/system/nth_alloc.c
src/system/nth_alloc.h

index bcf946c6f219005ead768a942d166838abdf47ef..59bc7cb7ca1a35394d2893268639482954ea0d32 100644 (file)
@@ -12,14 +12,3 @@ void *nth_calloc(size_t num, size_t size)
 
     return mem;
 }
-
-void *nth_realloc(void *ptr, size_t new_size)
-{
-    void *mem = realloc(ptr, new_size);
-
-    if (mem == NULL) {
-        log_fail("nth_realloc(0x%x, %lu) failed", ptr, new_size);
-    }
-
-    return mem;
-}
index 8968b34b203ccb7a1f3655aa7d54e31251e2e121..63ac3f747530dbb7948134b3afbfc7f089a05609 100644 (file)
@@ -4,6 +4,5 @@
 #include <stdlib.h>
 
 void *nth_calloc(size_t num, size_t size);
-void *nth_realloc(void *ptr, size_t new_size);
 
 #endif  // NTH_ALLOC_H_