chiark / gitweb /
In Undead, mark clues as errors in a few more situations.
[sgt-puzzles.git] / malloc.c
index fd0ddf97c6ca58f278d8a7bca09b0e17f5852ea6..a7fa7c5adc862fb73fd35bea36be457025609c0d 100644 (file)
--- 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);