diff --git a/util/ego/ca/ca.c b/util/ego/ca/ca.c index 5f50d8ddd..27e517818 100644 --- a/util/ego/ca/ca.c +++ b/util/ego/ca/ca.c @@ -174,7 +174,7 @@ STATIC void getpnames(dumpp) } } -STATIC new_name(s) char** s; +STATIC int new_name(s) char** s; { static int nn = 0; char buf[20]; @@ -190,7 +190,7 @@ STATIC new_name(s) char** s; strcpy(*s, buf); } -STATIC uniq_names() +STATIC int uniq_names() { /* The names of all internal procedures and data blocks * are made different. As the optimizer combines several @@ -218,7 +218,7 @@ STATIC uniq_names() } } -main(argc, argv) int argc; +int main(argc, argv) int argc; char* argv[]; { /* CA does not output proctable etc. files. Instead, its diff --git a/util/ego/ca/ca_put.c b/util/ego/ca/ca_put.c index d89d0578e..246a01a96 100644 --- a/util/ego/ca/ca_put.c +++ b/util/ego/ca/ca_put.c @@ -71,13 +71,13 @@ STATIC void outsym(const char *s, int t) coutshort((short) num); } } else { - p= s; + p= (byte*) s; while (*p && p < &s[IDL]) p++; num = p - s; outbyte( (byte) t); coutint((short) num); - p = s; + p = (byte*) s; while (num--) outbyte( (byte) *p++ ); } @@ -167,7 +167,7 @@ STATIC void coutobject(obj_p obj) STATIC void cputstr(argb_p abp) { register argb_p tbp; - register length; + register int length; length = 0; tbp = abp;