summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-30 17:09:59 +0000
committerKarl Berry <karl@freefriends.org>2016-10-30 17:09:59 +0000
commita7c9db43fbeda92560a0180df4ca17206a6aec7f (patch)
tree0d575f51e4e7cf803ddbbddc9b9755ae07feb4e8 /Build/source/texk/dvipsk
parent42416b8dd69fc5285a08531206662519172e6b8b (diff)
use -1 for INVALID_EPOCH_VALUE
git-svn-id: svn://tug.org/texlive/trunk@42383 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk')
-rw-r--r--Build/source/texk/dvipsk/ChangeLog4
-rw-r--r--Build/source/texk/dvipsk/output.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index 51a8810dcf3..c70441cc79a 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,5 +1,9 @@
2016-10-30 Karl Berry <karl@tug.org>
+ * output.c (INVALID_EPOCH_VALUE): define as (time_t) -1,
+ to avoid warning with huge unsigned value on 32-bit systems.
+ (open_output): don't duplicate writing of %%CreationDate.
+
* dvips.texi (Invoking Dvips): TEXCONFIG does not include
. by default.
diff --git a/Build/source/texk/dvipsk/output.c b/Build/source/texk/dvipsk/output.c
index fa57daaa1a1..14615db3eeb 100644
--- a/Build/source/texk/dvipsk/output.c
+++ b/Build/source/texk/dvipsk/output.c
@@ -90,7 +90,7 @@ static time_t jobtime;
#define strtoll _strtoi64
#endif
-#define INVALID_EPOCH_VALUE 0x7fffffffffffffffULL
+#define INVALID_EPOCH_VALUE ((time_t) -1)
static time_t
get_unique_time_if_given(void)
@@ -1421,12 +1421,8 @@ initprinter(sectiontype *sect)
jobtime = get_unique_time_if_given();
if (jobtime == INVALID_EPOCH_VALUE) {
jobtime = time(0);
- fprintf(bitfile, "%%%%CreationDate: %s",
- asctime(localtime(&jobtime)));
- } else {
- fprintf(bitfile, "%%%%CreationDate: %s",
- asctime(gmtime(&jobtime)));
}
+ fprintf(bitfile, "%%%%CreationDate: %s", asctime(gmtime(&jobtime)));
#endif
if (! isepsf) {
/*