summaryrefslogtreecommitdiff
path: root/src/libstddjb/alloc_realloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/alloc_realloc.c')
-rw-r--r--src/libstddjb/alloc_realloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/alloc_realloc.c b/src/libstddjb/alloc_realloc.c
index 8787291..82be92b 100644
--- a/src/libstddjb/alloc_realloc.c
+++ b/src/libstddjb/alloc_realloc.c
@@ -3,9 +3,9 @@
#include <stdlib.h>
#include <skalibs/alloc.h>
-int alloc_realloc (void **x, size_t n)
+int alloc_realloc (char **x, size_t n)
{
- void *y = n ? realloc(*x, n) : (free(*x), alloc(0)) ;
+ char *y = n ? (char *)realloc(*x, n) : (free(*x), (char *)alloc(0)) ;
if (!y) return 0 ;
*x = y ;
return 1 ;