diff options
author | harti <harti@FreeBSD.org> | 2005-04-05 07:40:40 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-04-05 07:40:40 +0000 |
commit | a868b14c9b808336c568b78b7493a08535bc73eb (patch) | |
tree | 80428d8b4373770e41f3d0413443be4a3a4552d2 /usr.bin/make | |
parent | 21d87372011651ba7bb7081381671ccc039f4336 (diff) | |
download | FreeBSD-src-a868b14c9b808336c568b78b7493a08535bc73eb.zip FreeBSD-src-a868b14c9b808336c568b78b7493a08535bc73eb.tar.gz |
The static tfile is used only in one single function so move it into that
function.
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/job.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index ec0e8d9..75f3e74 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); |