summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-11 03:38:29 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-11 03:38:29 +0000
commitbf9904d5593ff69b03654bff89e0866f932f84b8 (patch)
tree0041b128925ddb1da5ec94139658c4f97176c0f1
parent3ec03d32e38a0f48243f4e12147f9c84b2190c0c (diff)
Removed bogus var definition.
ok joris
-rw-r--r--usr.bin/cvs/diff_internals.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.bin/cvs/diff_internals.c b/usr.bin/cvs/diff_internals.c
index 837ba9d6643..5c6a8b1dd50 100644
--- a/usr.bin/cvs/diff_internals.c
+++ b/usr.bin/cvs/diff_internals.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff_internals.c,v 1.24 2008/06/11 02:19:13 tobias Exp $ */
+/* $OpenBSD: diff_internals.c,v 1.25 2008/06/11 03:38:28 tobias Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -921,13 +921,6 @@ rdiff_head(void)
struct tm t;
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 ? "***" : "---");
if (diff_rev1 == NULL) {
@@ -936,6 +929,7 @@ rdiff_head(void)
} else {
rcsnum_tostr(diff_rev1, buf, sizeof(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);