=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/diff_internals.c,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/usr.bin/cvs/diff_internals.c 2008/02/03 18:18:44 1.17 --- src/usr.bin/cvs/diff_internals.c 2008/02/03 18:59:44 1.18 *************** *** 1,4 **** ! /* $OpenBSD: diff_internals.c,v 1.17 2008/02/03 18:18:44 tobias Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: diff_internals.c,v 1.18 2008/02/03 18:59:44 tobias Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. *************** *** 869,877 **** t = localtime(&curr_time); } ! (void)strftime(buf, sizeof(buf), "%d %b %G %H:%M:%S -0000", t); ! diff_output("%s %s %s", diff_format == D_CONTEXT ? "***" : "---", ! diff_file, buf); if (diff_rev1 != NULL) { rcsnum_tostr(diff_rev1, buf, sizeof(buf)); --- 869,877 ---- t = localtime(&curr_time); } ! (void)strftime(buf, sizeof(buf), "%b %G %H:%M:%S -0000", t); ! diff_output("%s %s %d %s", diff_format == D_CONTEXT ? ! "***" : "---", diff_file, t->tm_mday, buf); if (diff_rev1 != NULL) { rcsnum_tostr(diff_rev1, buf, sizeof(buf)); *************** *** 880,895 **** diff_output("\n"); ! if (diff_rev2 != NULL) ! t = gmtime(&stb2.st_mtime); ! else { ! time(&curr_time); ! t = localtime(&curr_time); ! } ! (void)strftime(buf, sizeof(buf), "%d %b %G %H:%M:%S -0000", t); ! diff_output("%s %s %s", diff_format == D_CONTEXT ? "---" : "+++", ! diff_file, buf); if (diff_rev2 != NULL) { rcsnum_tostr(diff_rev2, buf, sizeof(buf)); --- 880,890 ---- diff_output("\n"); ! t = gmtime(&stb2.st_mtime); ! (void)strftime(buf, sizeof(buf), "%b %G %H:%M:%S -0000", t); ! diff_output("%s %s %d %s", diff_format == D_CONTEXT ? ! "---" : "+++", diff_file, t->tm_mday, buf); if (diff_rev2 != NULL) { rcsnum_tostr(diff_rev2, buf, sizeof(buf));