summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/util.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-06-14 20:28:54 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-06-14 20:28:54 +0000
commit4a2dc2e0e9143d5963c45115a8e281e855e860cf (patch)
treeadab8b78eb65b6686de7902ee8d925df7963338e /usr.bin/cvs/util.c
parent6f7bc7754ed423e884b5b756089b28b199672bab (diff)
simplify cvs_hack_time() and the way it is called;
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r--usr.bin/cvs/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index 35b42703aa6..afcaee42902 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.87 2006/06/14 15:14:47 xsa Exp $ */
+/* $OpenBSD: util.c,v 1.88 2006/06/14 20:28:53 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -551,7 +551,7 @@ cvs_hack_time(time_t oldtime, int togmt)
if (togmt == 1) {
t = gmtime(&oldtime);
if (t == NULL)
- return (0);
+ fatal("gmtime failed");
return (mktime(t));
}
@@ -562,7 +562,7 @@ cvs_hack_time(time_t oldtime, int togmt)
t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, t->tm_hour,
t->tm_min, t->tm_sec);
if (l == -1 || l >= (int)sizeof(tbuf))
- return (0);
+ fatal("cvs_hack_time: overflow");
return (cvs_date_parse(tbuf));
}