aboutsummaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c4
1 files changed, 2 insertions, 2 deletions
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);