From c37193b667965cd23d8015fc0e6389b57f247b8d Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 3 Aug 1987 11:01:19 +0000 Subject: [PATCH] some cosmetic changes --- modules/src/alloc/Malloc.c | 2 +- modules/src/alloc/Realloc.c | 6 +++--- modules/src/alloc/Salloc.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/src/alloc/Malloc.c b/modules/src/alloc/Malloc.c index 19dba1c07..db538eef9 100644 --- a/modules/src/alloc/Malloc.c +++ b/modules/src/alloc/Malloc.c @@ -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; diff --git a/modules/src/alloc/Realloc.c b/modules/src/alloc/Realloc.c index 6c477539e..643bd9a8c 100644 --- a/modules/src/alloc/Realloc.c +++ b/modules/src/alloc/Realloc.c @@ -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; } diff --git a/modules/src/alloc/Salloc.c b/modules/src/alloc/Salloc.c index b24908635..33c93e443 100644 --- a/modules/src/alloc/Salloc.c +++ b/modules/src/alloc/Salloc.c @@ -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