=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/date.y,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/cvs/date.y 2010/07/23 09:11:10 1.19 --- src/usr.bin/cvs/date.y 2010/07/23 21:46:05 1.20 *************** *** 1,5 **** %{ ! /* $OpenBSD: date.y,v 1.19 2010/07/23 09:11:10 ray Exp $ */ /* ** Originally written by Steven M. Bellovin while --- 1,5 ---- %{ ! /* $OpenBSD: date.y,v 1.20 2010/07/23 21:46:05 ray Exp $ */ /* ** Originally written by Steven M. Bellovin while *************** *** 800,811 **** } /* ! * cvs_date_parse() * * Returns the number of seconds since the Epoch corresponding to the date. */ time_t ! cvs_date_parse(const char *p) { struct tm gmt, tm; time_t Start, tod, nowtime, tz; --- 800,811 ---- } /* ! * date_parse() * * Returns the number of seconds since the Epoch corresponding to the date. */ time_t ! date_parse(const char *p) { struct tm gmt, tm; time_t Start, tod, nowtime, tz; *************** *** 814,820 **** if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || !localtime_r(&nowtime, &tm)) ! fatal("cvs_date_parse failed"); tz = difftm(&gmt, &tm) / 60; --- 814,820 ---- if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || !localtime_r(&nowtime, &tm)) ! fatal("date_parse failed"); tz = difftm(&gmt, &tm) / 60; *************** *** 879,885 **** (void)printf("Enter date, or blank line to exit.\n\t> "); (void)fflush(stdout); while (fgets(buff, sizeof(buff), stdin) && buff[0]) { ! d = cvs_date_parse(buff); if (d == -1) (void)printf("Bad format - couldn't convert.\n"); else --- 879,885 ---- (void)printf("Enter date, or blank line to exit.\n\t> "); (void)fflush(stdout); while (fgets(buff, sizeof(buff), stdin) && buff[0]) { ! d = date_parse(buff); if (d == -1) (void)printf("Bad format - couldn't convert.\n"); else