some cosmetic changes
authorceriel <none@none>
Mon, 3 Aug 1987 11:01:19 +0000 (11:01 +0000)
committerceriel <none@none>
Mon, 3 Aug 1987 11:01:19 +0000 (11:01 +0000)
modules/src/alloc/Malloc.c
modules/src/alloc/Realloc.c
modules/src/alloc/Salloc.c

index 19dba1c..db538ee 100644 (file)
@@ -20,7 +20,7 @@ EXPORT char *
 Malloc(sz)
        unsigned int sz;
 {
-       char *res = malloc(sz);
+       register char *res = malloc(sz);
        
        if (res == 0) No_Mem();
        return res;
index 6c47753..643bd9a 100644 (file)
@@ -21,7 +21,7 @@ Realloc(ptr, sz)
        char ptr[];
        unsigned int sz;
 {
-       ptr = realloc(ptr, sz);
-       if (ptr == 0) No_Mem();
-       return ptr;
+       register char *mptr = realloc(ptr, sz);
+       if (mptr == 0) No_Mem();
+       return mptr;
 }
index b249086..33c93e4 100644 (file)
@@ -19,7 +19,7 @@
 
 EXPORT char *
 Salloc(str, sz)
-       register char str[];
+       register char *str;
        register unsigned int sz;
 {
        /*      Salloc() is not a primitive function: it just allocates a