From 39858e4355cbd8f80aec5f37cc804b861bc2f4ad Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 30 May 2015 12:39:45 +0200 Subject: [PATCH] More cc65 const correctness workarounds. --- Applications/util/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.34.1