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