From 45981e8793461b227d777a94aeacc4394b585055 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Fri, 6 Jun 2014 15:09:08 +0800 Subject: [PATCH] Limit the scope of docmd. --- exec.c | 5 +++-- exec.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index e32d895..5e07a33 100644 --- a/exec.c +++ b/exec.c @@ -101,6 +101,8 @@ int namedcmd(int f, int n) return kfunc(f, n); } +static int docmd( char *cline) ; + /* * execcmd: * Execute a command line command to be typed in @@ -134,8 +136,7 @@ int execcmd(int f, int n) * * char *cline; command line to execute */ -int docmd(char *cline) -{ +static int docmd( char *cline) { int f; /* default argument flag */ int n; /* numeric repeat value */ fn_t fnc; /* function to execute */ diff --git a/exec.h b/exec.h index b82c6b9..7ac4b1c 100644 --- a/exec.h +++ b/exec.h @@ -19,7 +19,6 @@ extern boolean clexec ; /* command line execution flag */ int namedcmd( int f, int n) ; int execcmd( int f, int n) ; -int docmd( char *cline) ; char *token( char *src, char *tok, int size) ; int macarg( char *tok) ; int nextarg( const char *prompt, char *buffer, int size, int terminator) ;