X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/ab30d7becf6b96aa8e10c008bc86e008e42d72cf..HEAD:/malloc.c diff --git a/malloc.c b/malloc.c index fd0ddf9..a7fa7c5 100644 --- a/malloc.c +++ b/malloc.c @@ -10,7 +10,7 @@ * smalloc should guarantee to return a useful pointer - Halibut * can do nothing except die when it's out of memory anyway. */ -void *smalloc(int size) { +void *smalloc(size_t size) { void *p; p = malloc(size); if (!p) @@ -30,7 +30,7 @@ void sfree(void *p) { /* * srealloc should guaranteeably be able to realloc NULL */ -void *srealloc(void *p, int size) { +void *srealloc(void *p, size_t size) { void *q; if (p) { q = realloc(p, size);