rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 034adee7e777b3f841eebed9fe827689721847c9
parent 882ec17c89fd44f9264eca37624de0f8b5e0feb8
Author: tgoodwin <tgoodwin>
Date:   Tue, 10 Feb 1998 16:40:54 +0000

fix const / prototype warnings

Diffstat:
Mexec.c | 2+-
Mexecve.c | 2+-
Mrc.h | 3+++
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/exec.c b/exec.c @@ -93,7 +93,7 @@ extern void exec(List *s, bool parent) { #if HASH_BANG execve(path, (char * const *) av, (char * const *) ev); #else - my_execve(path, (char * const *) av, (char * const *) ev); /* bogus, huh? */ + my_execve(path, av, ev); /* bogus, huh? */ #endif #ifdef DEFAULTINTERP diff --git a/execve.c b/execve.c @@ -10,7 +10,7 @@ #define giveupif(x) { if (x) goto fail; } -extern int my_execve(const char *path, const char **av, const char **ev) { +extern int my_execve(char *path, char **av, char **ev) { int fd, len, fst, snd, end; bool noarg; char pb[256]; /* arbitrary but generous limit */ diff --git a/rc.h b/rc.h @@ -228,6 +228,9 @@ extern void sigint(int); extern void exec(List *, bool); extern void doredirs(void); +/* execve.c */ +extern int my_execve(char *, char **, char **); + /* footobar.c */ extern char **list2array(List *, bool); extern char *get_name(char *);