The static tfile is used only in one single function so move it into that

function.
This commit is contained in:
harti 2005-04-05 07:40:40 +00:00
parent 21d8737201
commit a868b14c9b

View File

@ -330,12 +330,6 @@ static int numCommands;
#define JOB_FINISHED 2 /* The job is already finished */
#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.
*/
@ -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);