6502: cc65 is very fussy at tines - fix up the moans
authorAlan Cox <alan@linux.intel.com>
Wed, 22 Nov 2017 17:50:17 +0000 (17:50 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 22 Nov 2017 17:50:17 +0000 (17:50 +0000)
Applications/MWC/cmd/at.c
Applications/MWC/cmd/make.c
Applications/MWC/cmd/make.h

index 8a550e4..fdef8d3 100644 (file)
@@ -192,7 +192,7 @@ void copywd(void)
 {
        int pid;
        int stat;
-       static const char *args[] = {
+       static char *const args[] = {
                                "pwd",
                                NULL
                        };
index 21b6b0b..497fb14 100644 (file)
@@ -480,7 +480,7 @@ char *path(const char *p1, const char *p2, int mode)
 }
 
 /* Input with library lookup */
-void inlib(char *file)
+void inlib(const char *file)
 {
        const char *p, *cp;
        if ((p = getenv("LIBPATH")) == NULL)
@@ -498,7 +498,7 @@ void inpath(char *file, ...)
        va_start(ap, file);
 
        cp = NULL;
-       for (vp = va_arg(ap, char *); *vp != NULL;)
+       for (vp = va_arg(ap, char **); *vp != NULL;)
                if (access(*vp, R_OK) >= 0) {
                        cp = *vp;
                        break;
@@ -506,7 +506,7 @@ void inpath(char *file, ...)
        va_end(ap);
        if ( ! cp) {
                va_start(ap, file);
-               for (vp = va_arg(ap, char *); *vp != NULL; vp += 1)
+               for (vp = va_arg(ap, char **); *vp != NULL; vp += 1)
                        if ((cp = path(srcpath, *vp, R_OK)) != NULL)
                                break;
                va_end(ap);
index 78bf37e..9ea63a9 100644 (file)
@@ -93,7 +93,7 @@ extern void endtoken(void);
 extern TOKEN *listtoken(char *, TOKEN *);
 extern TOKEN *freetoken(TOKEN *);
 extern void input(const char *);
-extern void inlib(char *);
+extern void inlib(const char *);
 extern void inpath(char *, ...);
 extern time_t getmdate(char *);
 extern int fexists(char *);