The static tfile is used only in one single function so move it into that
function.
This commit is contained in:
parent
21d8737201
commit
a868b14c9b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user