ERR: Removed extra variable assignments.
This commit is contained in:
parent
8f8cc16ea3
commit
37bbb27bfa
@ -696,7 +696,7 @@ const char* kwsysProcess_GetErrorString(kwsysProcess* cp)
|
|||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
void kwsysProcess_Execute(kwsysProcess* cp)
|
void kwsysProcess_Execute(kwsysProcess* cp)
|
||||||
{
|
{
|
||||||
int i=0;
|
int i;
|
||||||
|
|
||||||
/* Windows child startup control data. */
|
/* Windows child startup control data. */
|
||||||
STARTUPINFO si;
|
STARTUPINFO si;
|
||||||
@ -870,7 +870,6 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, int pipes, char** data, int* leng
|
|||||||
{
|
{
|
||||||
/* Timeout has already expired. */
|
/* Timeout has already expired. */
|
||||||
expired = 1;
|
expired = 1;
|
||||||
done = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(timeoutTime.QuadPart < 0)
|
if(timeoutTime.QuadPart < 0)
|
||||||
@ -1001,7 +1000,7 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, int pipes, char** data, int* leng
|
|||||||
int kwsysProcess_WaitForExit(kwsysProcess* cp, double* userTimeout)
|
int kwsysProcess_WaitForExit(kwsysProcess* cp, double* userTimeout)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int pipe = 0;
|
int pipe;
|
||||||
|
|
||||||
/* Make sure we are executing a process. */
|
/* Make sure we are executing a process. */
|
||||||
if(cp->State != kwsysProcess_State_Executing)
|
if(cp->State != kwsysProcess_State_Executing)
|
||||||
@ -1314,7 +1313,6 @@ void kwsysProcessCleanErrorMessage(kwsysProcess* cp)
|
|||||||
if(length > 0 && cp->ErrorMessage[length-1] == '.')
|
if(length > 0 && cp->ErrorMessage[length-1] == '.')
|
||||||
{
|
{
|
||||||
cp->ErrorMessage[length-1] = 0;
|
cp->ErrorMessage[length-1] = 0;
|
||||||
--length;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -769,7 +769,7 @@ static void reginsert (char op, char* opnd) {
|
|||||||
place = opnd; // Op node, where operand used to be.
|
place = opnd; // Op node, where operand used to be.
|
||||||
*place++ = op;
|
*place++ = op;
|
||||||
*place++ = '\0';
|
*place++ = '\0';
|
||||||
*place++ = '\0';
|
*place = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user