From: David Given Date: Sat, 30 May 2015 10:39:45 +0000 (+0200) Subject: More cc65 const correctness workarounds. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=64ecf9ee9d3f54b6939e2c5b17fba9e314d8a610;p=FUZIX.git More cc65 const correctness workarounds. --HG-- extra : source : e60e2c93b05a69e69c92f9f76914f9311d8e89d1 --- diff --git a/Applications/util/init.c b/Applications/util/init.c index 3acfc11f..27521cbf 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -132,10 +132,10 @@ static pid_t spawn_process(uint8_t * p, uint8_t wait) /* Don't leak utmp into the child */ endutent(); /* Run the child */ - execv(args[2], args + 2); + execv(args[2], (char**) (args + 2)); /* If it didn't look binary run it via the shell */ if (errno == ENOEXEC) - execv("/bin/sh", args); + execv("/bin/sh", (char**) args); /* Oh bugger */ perror(args[2]); exit(1); @@ -547,7 +547,7 @@ static pid_t getty(const char *ttyname, const char *id) /* here we are inside child's context of execution */ envset("PATH", "/bin:/usr/bin"); - envset("CTTY", ttyname); + envset("CTTY", (char*) ttyname); /* make stdin, stdout and stderr point to fdtty */