tcmd/rc: fix declarations of some externally linked variables - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f77d12f8d8a822aae41b835c0cca050928c58221
 (DIR) parent ab6f1aeac761178fb70863681eab9e681aa3f379
 (HTM) Author: Neven Sajko <nsajko@gmail.com>
       Date:   Thu,  8 Aug 2019 21:24:58 +0000
       
       cmd/rc: fix declarations of some externally linked variables
       
       Change-Id: If8fe1afecb9fe55f85e8e5af37521b83e787d718
       
       Diffstat:
         M src/cmd/rc/exec.h                   |       2 +-
         M src/cmd/rc/rc.h                     |       3 +--
       
       2 files changed, 2 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/rc/exec.h b/src/cmd/rc/exec.h
       t@@ -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);
 (DIR) diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h
       t@@ -71,7 +71,6 @@ union code{
                char *s;
        };
        char *promptstr;
       -int doprompt;
        #define        NTOK        8192
        char tok[NTOK];
        #define        APPEND        1
       t@@ -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.