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

Diff for /src/usr.bin/calendar/io.c between version 1.48 and 1.49

version 1.48, 2019/01/29 22:28:30 version 1.49, 2019/06/28 13:35:00
Line 331 
Line 331 
                 }                  }
         }          }
   
         if (pipe(pdes) < 0) {          if (pipe(pdes) == -1) {
                 close(fdin);                  close(fdin);
                 return (NULL);                  return (NULL);
         }          }
Line 393 
Line 393 
         (void)rewind(fp);          (void)rewind(fp);
         if (fstat(fileno(fp), &sbuf) || !sbuf.st_size)          if (fstat(fileno(fp), &sbuf) || !sbuf.st_size)
                 goto done;                  goto done;
         if (pipe(pdes) < 0)          if (pipe(pdes) == -1)
                 goto done;                  goto done;
         switch ((pid = vfork())) {          switch ((pid = vfork())) {
         case -1:                        /* error */          case -1:                        /* error */

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49