=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/date.y,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/rcs/date.y 2010/07/23 21:46:05 1.8 --- src/usr.bin/rcs/date.y 2010/07/29 18:52:45 1.9 *************** *** 1,5 **** %{ ! /* $OpenBSD: date.y,v 1.8 2010/07/23 21:46:05 ray Exp $ */ /* ** Originally written by Steven M. Bellovin while --- 1,5 ---- %{ ! /* $OpenBSD: date.y,v 1.9 2010/07/29 18:52:45 ray Exp $ */ /* ** Originally written by Steven M. Bellovin while *************** *** 525,531 **** Hours = 0; return ((Hours + 12) * 60L + Minutes) * 60L + Seconds; default: ! abort(); } /* NOTREACHED */ } --- 525,531 ---- Hours = 0; return ((Hours + 12) * 60L + Minutes) * 60L + Seconds; default: ! return (-1); } /* NOTREACHED */ } *************** *** 819,825 **** if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || !localtime_r(&nowtime, &tm)) ! errx(1, "date_parse failed"); tz = difftm(&gmt, &tm) / 60; --- 819,825 ---- if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || !localtime_r(&nowtime, &tm)) ! return -1; tz = difftm(&gmt, &tm) / 60;