aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2005-04-05 07:40:40 +0000
committerHartmut Brandt <harti@FreeBSD.org>2005-04-05 07:40:40 +0000
commitd9e678f13fbc2859e8fb756d05ccb24358bcecea (patch)
tree80428d8b4373770e41f3d0413443be4a3a4552d2 /usr.bin
parent29c6a883cdfaddf175bf30617d10ea9ebe9bf304 (diff)
downloadsrc-d9e678f13fbc2859e8fb756d05ccb24358bcecea.tar.gz
src-d9e678f13fbc2859e8fb756d05ccb24358bcecea.zip
The static tfile is used only in one single function so move it into that
function.
Notes
Notes: svn path=/head/; revision=144654
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/job.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index ec0e8d95ca8f..75f3e742f4da 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -331,12 +331,6 @@ static int numCommands;
#define JOB_STOPPED 3 /* The job is stopped */
/*
- * tfile is used to build temp file names to store shell commands to
- * execute.
- */
-static char tfile[sizeof(TMPPAT)];
-
-/*
* Descriptions for various shells.
*/
static const struct CShell shells[] = {
@@ -1482,6 +1476,7 @@ JobStart(GNode *gn, int flags, Job *previous)
Boolean noExec; /* Set true if we decide not to run the job */
int tfd; /* File descriptor for temp file */
LstNode *ln;
+ char tfile[sizeof(TMPPAT)];
if (interrupted) {
JobPassSig(interrupted);