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

Diff for /src/usr.bin/cvs/diff_internals.c between version 1.24 and 1.25

version 1.24, 2008/06/11 02:19:13 version 1.25, 2008/06/11 03:38:28
Line 921 
Line 921 
         struct tm t;          struct tm t;
         time_t curr_time;          time_t curr_time;
   
         if (diff_rev1 != NULL) {  
                 localtime_r(&stb1.st_mtime, &t);  
         } else {  
                 time(&curr_time);  
                 localtime_r(&curr_time, &t);  
         }  
   
         diff_output("%s ", diff_format == D_CONTEXT ? "***" : "---");          diff_output("%s ", diff_format == D_CONTEXT ? "***" : "---");
   
         if (diff_rev1 == NULL) {          if (diff_rev1 == NULL) {
Line 936 
Line 929 
         } else {          } else {
                 rcsnum_tostr(diff_rev1, buf, sizeof(buf));                  rcsnum_tostr(diff_rev1, buf, sizeof(buf));
                 diff_output("%s:%s", diff_file1, buf);                  diff_output("%s:%s", diff_file1, buf);
                   localtime_r(&stb1.st_mtime, &t);
         }          }
   
         (void)strftime(buf, sizeof(buf), "%a %b %e %H:%M:%S %G", &t);          (void)strftime(buf, sizeof(buf), "%a %b %e %H:%M:%S %G", &t);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25