[BACK]Return to job.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/job.c between version 1.61 and 1.62

version 1.61, 2007/03/02 04:32:32 version 1.62, 2007/06/12 16:33:27
Line 1349 
Line 1349 
             job->curPos = 0;              job->curPos = 0;
   
             if (outputsp == NULL || job->inPipe > outputsn) {              if (outputsp == NULL || job->inPipe > outputsn) {
                 int bytes = howmany(job->inPipe+1, NFDBITS) * sizeof(fd_mask);                  int bytes, obytes;
                 int obytes = howmany(outputsn+1, NFDBITS) * sizeof(fd_mask);                  char *tmp;
   
                 if (outputsp == NULL || obytes != bytes) {                  bytes = howmany(job->inPipe+1, NFDBITS) * sizeof(fd_mask);
                         outputsp = realloc(outputsp, bytes);                  obytes = outputsn ?
                         if (outputsp == NULL)                      howmany(outputsn+1, NFDBITS) * sizeof(fd_mask) : 0;
   
                   if (bytes != obytes) {
                           tmp = realloc(outputsp, bytes);
                           if (tmp == NULL)
                                 return;                                  return;
                         memset(outputsp + obytes, 0, bytes - obytes);                          memset(tmp + obytes, 0, bytes - obytes);
                           outputsp = (fd_set *)tmp;
                 }                  }
                 outputsn = job->inPipe;                  outputsn = job->inPipe;
             }              }

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62