summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/date.y
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2010-07-29 18:52:46 +0000
committerRay Lai <ray@cvs.openbsd.org>2010-07-29 18:52:46 +0000
commitc1e84e8a0536c0f47b1f926a96335d366d1a3874 (patch)
tree6abfd3e2ab3360bf151413ac320170ecbec264c9 /usr.bin/cvs/date.y
parent71f6d55ab136089eb07b38addee39fbd504e64a6 (diff)
Replace abort(), fatal(), and errx() with return -1, since date_parse
returns -1 on error. OK nicm
Diffstat (limited to 'usr.bin/cvs/date.y')
-rw-r--r--usr.bin/cvs/date.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/date.y b/usr.bin/cvs/date.y
index 494af2b3933..3421ebda471 100644
--- a/usr.bin/cvs/date.y
+++ b/usr.bin/cvs/date.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: date.y,v 1.20 2010/07/23 21:46:05 ray Exp $ */
+/* $OpenBSD: date.y,v 1.21 2010/07/29 18:52:45 ray Exp $ */
/*
** Originally written by Steven M. Bellovin <smb@research.att.com> while
@@ -814,7 +814,7 @@ date_parse(const char *p)
if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) ||
!localtime_r(&nowtime, &tm))
- fatal("date_parse failed");
+ return -1;
tz = difftm(&gmt, &tm) / 60;