version 1.24, 2008/06/11 02:19:13 |
version 1.25, 2008/06/11 03:38:28 |
|
|
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) { |
|
|
} 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); |