=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/date.y,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/rcs/date.y 2010/07/23 09:14:58 1.7 +++ src/usr.bin/rcs/date.y 2010/07/23 21:46:05 1.8 @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: date.y,v 1.7 2010/07/23 09:14:58 ray Exp $ */ +/* $OpenBSD: date.y,v 1.8 2010/07/23 21:46:05 ray Exp $ */ /* ** Originally written by Steven M. Bellovin while @@ -805,12 +805,12 @@ } /* - * rcs_date_parse() + * date_parse() * * Returns the number of seconds since the Epoch corresponding to the date. */ time_t -rcs_date_parse(const char *p) +date_parse(const char *p) { struct tm gmt, tm; time_t Start, tod, nowtime, tz; @@ -819,7 +819,7 @@ if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || !localtime_r(&nowtime, &tm)) - errx(1, "cvs_date_parse failed"); + errx(1, "date_parse failed"); tz = difftm(&gmt, &tm) / 60; @@ -884,7 +884,7 @@ (void)printf("Enter date, or blank line to exit.\n\t> "); (void)fflush(stdout); while (fgets(buff, sizeof(buff), stdin) && buff[0]) { - d = rcs_date_parse(buff); + d = date_parse(buff); if (d == -1) (void)printf("Bad format - couldn't convert.\n"); else