fix uninitialized red variable
[fw/sdcc] / link / z80 / lkarea.c
index 797b0b416369bdc8af55d6cfc04600ecfec74d19..deb61c99c89cf6572df42e1a02d2517259c71284 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <alloc.h>
 #include "aslink.h"
 
 /*)Module      lkarea.c
@@ -71,7 +70,7 @@
  *             int     lkerr           error flag
  *
  *     functions called:
- *             addr_t  eval()          lkeval.c
+ *             Addr_T  eval()          lkeval.c
  *             VOID    exit()          c_library
  *             int     fprintf()       c_library
  *             VOID    getid()         lklex.c
 VOID
 newarea()
 {
-       register i, narea;
+       register int i, narea;
        struct areax *taxp;
        struct areax **halp;
        char id[NCPS];
@@ -283,7 +282,7 @@ char *id;
  *     define the starting address and length of each area.
  *
  *     local variables:
- *             addr_t  rloc            ;current relocation address
+ *             Addr_T  rloc            ;current relocation address
  *             char    temp[]          ;temporary string
  *             struct symbol   *sp     ;symbol structure
  *
@@ -312,7 +311,7 @@ char *id;
 VOID
 lnkarea()
 {
-       register rloc;
+       register int rloc;
        char temp[NCPS];
        struct sym *sp;
 
@@ -371,8 +370,8 @@ lnkarea()
  *     function.
  *
  *     local variables:
- *             addr_t  size            size of area
- *             addr_t  addr            address of area
+ *             Addr_T  size            size of area
+ *             Addr_T  addr            address of area
  *             areax * taxp            pointer to an areax structure
  *
  *     global variables:
@@ -390,7 +389,7 @@ VOID
 lnksect(tap)
 register struct area *tap;
 {
-       register addr_t size, addr;
+       register Addr_T size, addr;
        register struct areax *taxp;
 
        size = 0;