summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-05-12 14:33:24 +0000
committerharti <harti@FreeBSD.org>2005-05-12 14:33:24 +0000
commitce844954aeb4f5280f8e31cdc04dfc235228e13c (patch)
tree88f03367d6bf797aae74f920878223ea39c03f6c /usr.bin/make
parent8a832592ce11ab5f5c94757893e5f7353808bee1 (diff)
downloadFreeBSD-src-ce844954aeb4f5280f8e31cdc04dfc235228e13c.zip
FreeBSD-src-ce844954aeb4f5280f8e31cdc04dfc235228e13c.tar.gz
Compat_RunCommand is used only in job.c so make it static there.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.234)
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/job.c3
-rw-r--r--usr.bin/make/job.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 279fb66..3e6c482 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -502,6 +502,7 @@ static struct Shell *JobMatchShell(const char *);
static void JobInterrupt(int, int);
static void JobRestartJobs(void);
static void ProcExec(const ProcStuff *) __dead2;
+static int Compat_RunCommand(char *, struct GNode *);
/*
* The following array is used to make a fast determination of which
@@ -3299,7 +3300,7 @@ shellneed(char *cmd)
*
*-----------------------------------------------------------------------
*/
-int
+static int
Compat_RunCommand(char *cmd, GNode *gn)
{
char *cmdStart; /* Start of expanded command */
diff --git a/usr.bin/make/job.h b/usr.bin/make/job.h
index 04253b8..fab68d8 100644
--- a/usr.bin/make/job.h
+++ b/usr.bin/make/job.h
@@ -73,6 +73,5 @@ void Job_AbortAll(void);
struct Buffer *Cmd_Exec(const char *, const char **);
void Compat_Run(struct Lst *);
-int Compat_RunCommand(char *, struct GNode *);
#endif /* job_h_4678dfd1 */
OpenPOWER on IntegriCloud