diff --git a/exec.c b/exec.c index 7ee8c1a..43b23eb 100644 --- a/exec.c +++ b/exec.c @@ -82,15 +82,6 @@ static int dobuf( struct buffer *bp) ; static void freewhile( struct while_block *wp) ; static int macarg( char *tok, int toksz) ; -void ue_system( const char *cmd) { - int ret ; - - ret = system( cmd) ; - if( ret == -1) { - /* some actual handling needed here */ - } -} - /* * Execute a named command even if it is not bound. */ diff --git a/exec.h b/exec.h index 4db15b5..849ac0c 100644 --- a/exec.h +++ b/exec.h @@ -15,7 +15,6 @@ int execproc( int f, int n) ; extern boolean clexec ; /* command line execution flag */ -void ue_system( const char *cmd) ; int namedcmd( int f, int n) ; int execcmd( int f, int n) ; void gettoken( char *tok, int maxtoksize) ; diff --git a/input.c b/input.c index ccaddc4..3db78e4 100644 --- a/input.c +++ b/input.c @@ -11,6 +11,7 @@ */ #include +#include #include #include @@ -50,6 +51,15 @@ const int nlc = CONTROL | 'J' ; /* end of input char */ static const int quotec = 0x11 ; /* quote char during getstring() */ +void ue_system( const char *cmd) { + int ret ; + + ret = system( cmd) ; + if( ret == -1) { + /* some actual handling needed here */ + } +} + /* * Ask a yes or no question in the message line. Return either TRUE, FALSE, or * ABORT. The ABORT status is returned if the user bumps out of the question diff --git a/input.h b/input.h index 46cdc09..487cb0f 100644 --- a/input.h +++ b/input.h @@ -21,6 +21,7 @@ extern int abortc; /* current abort command char */ extern const int nlc ; /* end of input char */ +void ue_system( const char *cmd) ; int mlyesno( const char *prompt) ; int newmlarg( char **outbufref, const char *prompt, int size) ; int newmlargt( char **outbufref, const char *prompt, int size) ; diff --git a/spawn.h b/spawn.h index 3ce690d..db8d7c2 100644 --- a/spawn.h +++ b/spawn.h @@ -5,7 +5,3 @@ int spawn( int f, int n) ; int execprg( int f, int n) ; int pipecmd( int f, int n) ; int filter_buffer( int f, int n) ; -int sys( char *cmd) ; -int shellprog( char *cmd) ; -int execprog( char *cmd) ; -