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

Diff for /src/usr.bin/cvs/diff.c between version 1.138 and 1.139

version 1.138, 2008/06/10 17:34:36 version 1.139, 2008/06/11 02:19:13
Line 23 
Line 23 
 #include <fcntl.h>  #include <fcntl.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <time.h>
 #include <unistd.h>  #include <unistd.h>
   
 #include "cvs.h"  #include "cvs.h"
Line 244 
Line 245 
         int fd1, fd2;          int fd1, fd2;
         struct stat st;          struct stat st;
         struct timeval tv[2], tv2[2];          struct timeval tv[2], tv2[2];
         struct tm *datetm;          struct tm datetm;
         char rbuf[CVS_REV_BUFSZ], tbuf[CVS_TIME_BUFSZ], *p1, *p2;          char rbuf[CVS_REV_BUFSZ], tbuf[CVS_TIME_BUFSZ], *p1, *p2;
   
         b1 = NULL;          b1 = NULL;
Line 327 
Line 328 
                                 cvs_log(LP_ERR, "tag %s not in file %s", rev1,                                  cvs_log(LP_ERR, "tag %s not in file %s", rev1,
                                     cf->file_path);                                      cf->file_path);
                         else {                          else {
                                 datetm = gmtime(&cvs_specified_date);                                  gmtime_r(&cvs_specified_date, &datetm);
                                 strftime(tbuf, sizeof(tbuf),                                  strftime(tbuf, sizeof(tbuf),
                                     "%Y.%m.%d.%H.%M.%S", datetm);                                      "%Y.%m.%d.%H.%M.%S", &datetm);
                                 cvs_log(LP_ERR, "no revision for date %s in "                                  cvs_log(LP_ERR, "no revision for date %s in "
                                     "file %s", tbuf, cf->file_path);                                      "file %s", tbuf, cf->file_path);
                         }                          }
Line 361 
Line 362 
                                 cvs_log(LP_ERR, "tag %s not in file %s", rev2,                                  cvs_log(LP_ERR, "tag %s not in file %s", rev2,
                                     cf->file_path);                                      cf->file_path);
                         } else {                          } else {
                                 datetm = gmtime(&cvs_specified_date);                                  gmtime_r(&cvs_specified_date, &datetm);
                                 strftime(tbuf, sizeof(tbuf),                                  strftime(tbuf, sizeof(tbuf),
                                     "%Y.%m.%d.%H.%M.%S", datetm);                                      "%Y.%m.%d.%H.%M.%S", &datetm);
                                 cvs_log(LP_ERR, "no revision for date %s in "                                  cvs_log(LP_ERR, "no revision for date %s in "
                                     "file %s", tbuf, cf->file_path);                                      "file %s", tbuf, cf->file_path);
                         }                          }

Legend:
Removed from v.1.138  
changed lines
  Added in v.1.139