From: Alan Cox Date: Wed, 22 Nov 2017 17:50:17 +0000 (+0000) Subject: 6502: cc65 is very fussy at tines - fix up the moans X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=54ed3edef41b7b4930720a8b7a23dc0aa26048d1;p=FUZIX.git 6502: cc65 is very fussy at tines - fix up the moans --- diff --git a/Applications/MWC/cmd/at.c b/Applications/MWC/cmd/at.c index 8a550e4b..fdef8d3b 100644 --- a/Applications/MWC/cmd/at.c +++ b/Applications/MWC/cmd/at.c @@ -192,7 +192,7 @@ void copywd(void) { int pid; int stat; - static const char *args[] = { + static char *const args[] = { "pwd", NULL }; diff --git a/Applications/MWC/cmd/make.c b/Applications/MWC/cmd/make.c index 21b6b0bc..497fb145 100644 --- a/Applications/MWC/cmd/make.c +++ b/Applications/MWC/cmd/make.c @@ -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); diff --git a/Applications/MWC/cmd/make.h b/Applications/MWC/cmd/make.h index 78bf37e0..9ea63a9e 100644 --- a/Applications/MWC/cmd/make.h +++ b/Applications/MWC/cmd/make.h @@ -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 *);