More compiler fixes; mismatched function prototype for gcc, some
authorDavid Given <dg@cowlark.com>
Mon, 1 Jun 2015 19:36:24 +0000 (21:36 +0200)
committerDavid Given <dg@cowlark.com>
Mon, 1 Jun 2015 19:36:24 +0000 (21:36 +0200)
smallification and const casts for cc65.

Applications/V7/cmd/sh/main.c
Applications/V7/cmd/sh/service.c
Applications/levee/modify.c
Applications/levee/proto.h

index ac4b9d6..5fc039e 100644 (file)
@@ -18,6 +18,7 @@
 #include       "timeout.h"
 #include       <sys/types.h>
 #include       <sys/stat.h>
+#include    <setjmp.h>
 
 UFD output = 2;
 static BOOL beenhere = FALSE;
index 4e9c651..6a3dfbe 100644 (file)
@@ -149,7 +149,7 @@ static const char *execs(const char *ap, const char *t[])
        trim(p = curstak());
 
        sigchk();
-       execve(p, &t[0], (const char **)xecenv);
+       execve(p, (char**) &t[0], (char **)xecenv);
        switch (errno) {
        case ENOEXEC:
                flags = 0;
index 71ad4b0..24aa0dc 100644 (file)
@@ -138,7 +138,7 @@ chop(int start, int *endd, bool visual, bool *query)
 /*>>>>
     bool ok;
   <<<<*/
-    char dest[DSIZE];
+    static char dest[DSIZE];
     register int len, dlen;
     
     retval = -1;
index 72707af..2c930c9 100644 (file)
@@ -66,7 +66,7 @@ int  PROC findfwd(char  *pattern,int  start,int  endp);
 int  PROC fixcore(int  *topp);
 void PROC fixmarkers(int  base,int  offset);
 int  PROC fixupline(int  dft);
-int  PROC format(char  *out,unsigned short  c);
+int  PROC format(char  *out,unsigned c);
 int  PROC fseekeol(int  origin);
 int  PROC gcount(void);
 int  PROC getKey(void);
@@ -158,7 +158,7 @@ int  PROC writefile(void);
 int  PROC writeline(int  y,int  x,int  start);
 int  PROC zdraw(char  code);
 int  PROC zerostack(struct  undostack *u);
-void main(int  argc,char  * *argv);
+void main(int  argc,char *argv[]);
 void PROC initcon(void);
 void PROC fixcon(void);
 #endif  /*_PROTO_D*/