Skip to content

Commit

Permalink
cmd/rc: fix declarations of some externally linked variables
Browse files Browse the repository at this point in the history
Change-Id: If8fe1afecb9fe55f85e8e5af37521b83e787d718
  • Loading branch information
nsajko authored and 0intro committed Jan 2, 2020
1 parent ab6f1ae commit f77d12f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cmd/rc/exec.h
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/cmd/rc/rc.h
Expand Up @@ -71,7 +71,6 @@ union code{
char *s;
};
char *promptstr;
int doprompt;
#define NTOK 8192
char tok[NTOK];
#define APPEND 1
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f77d12f

Please sign in to comment.