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

Diff for /src/usr.bin/cvs/buf.c between version 1.68 and 1.69

version 1.68, 2008/02/11 20:33:10 version 1.69, 2008/02/27 22:34:04
Line 276 
Line 276 
  * specified using <template> (see mkstemp.3). NB. This function will modify   * specified using <template> (see mkstemp.3). NB. This function will modify
  * <template>, as per mkstemp   * <template>, as per mkstemp
  */   */
 void  int
 cvs_buf_write_stmp(BUF *b, char *template, struct timeval *tv)  cvs_buf_write_stmp(BUF *b, char *template, struct timeval *tv)
 {  {
         int fd;          int fd;
Line 294 
Line 294 
                         fatal("cvs_buf_write_stmp: futimes failed");                          fatal("cvs_buf_write_stmp: futimes failed");
         }          }
   
         (void)close(fd);  
   
         cvs_worklist_add(template, &temp_files);          cvs_worklist_add(template, &temp_files);
   
           if (lseek(fd, SEEK_SET, 0) < 0)
                   fatal("cvs_buf_write_stmp: lseek: %s", strerror(errno));
   
           return (fd);
 }  }
   
 /*  /*

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69