aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc
diff options
context:
space:
mode:
authorNeven Sajko <nsajko@gmail.com>2019-08-08 21:24:58 +0000
committerDavid du Colombier <0intro@gmail.com>2020-01-02 16:22:53 +0100
commitf77d12f8d8a822aae41b835c0cca050928c58221 (patch)
tree7bd2a1d23c9963a0c7a1cc93cfde7eebae14a226 /src/cmd/rc
parentab6f1aeac761178fb70863681eab9e681aa3f379 (diff)
downloadplan9port-f77d12f8d8a822aae41b835c0cca050928c58221.tar.gz
plan9port-f77d12f8d8a822aae41b835c0cca050928c58221.tar.bz2
plan9port-f77d12f8d8a822aae41b835c0cca050928c58221.zip
cmd/rc: fix declarations of some externally linked variables
Change-Id: If8fe1afecb9fe55f85e8e5af37521b83e787d718
Diffstat (limited to 'src/cmd/rc')
-rw-r--r--src/cmd/rc/exec.h2
-rw-r--r--src/cmd/rc/rc.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/rc/exec.h b/src/cmd/rc/exec.h
index 06d2991f..06cfd64e 100644
--- a/src/cmd/rc/exec.h
+++ b/src/cmd/rc/exec.h
@@ -67,7 +67,7 @@ struct builtin{
};
extern struct builtin Builtin[];
int eflagok; /* kludge flag so that -e doesn't exit in startup */
-int havefork;
+extern int havefork;
void execcd(void), execwhatis(void), execeval(void), execexec(void);
int execforkexec(void);
diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h
index 7778ff4c..46ff9510 100644
--- a/src/cmd/rc/rc.h
+++ b/src/cmd/rc/rc.h
@@ -71,7 +71,6 @@ union code{
char *s;
};
char *promptstr;
-int doprompt;
#define NTOK 8192
char tok[NTOK];
#define APPEND 1
@@ -126,7 +125,7 @@ int mypid;
char **argp;
char **args;
int nerror; /* number of errors encountered during compilation */
-int doprompt; /* is it time for a prompt? */
+extern int doprompt; /* is it time for a prompt? */
/*
* Which fds are the reading/writing end of a pipe?
* Unfortunately, this can vary from system to system.