=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/date.y,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/cvs/date.y 2005/03/23 20:00:18 1.1 --- src/usr.bin/cvs/date.y 2005/03/24 03:07:04 1.2 *************** *** 1,5 **** %{ ! /* $OpenBSD: date.y,v 1.1 2005/03/23 20:00:18 jfb Exp $ */ /* ** Originally written by Steven M. Bellovin while --- 1,5 ---- %{ ! /* $OpenBSD: date.y,v 1.2 2005/03/24 03:07:04 jfb Exp $ */ /* ** Originally written by Steven M. Bellovin while *************** *** 19,24 **** --- 19,25 ---- #include #include + #include #include #include #include *************** *** 79,84 **** --- 80,91 ---- static time_t yyRelMonth; static time_t yyRelSeconds; + + static int yyerror (const char *, ...); + static int yylex (void); + static int yyparse (void); + + %} %union { *************** *** 488,496 **** /* ARGSUSED */ static int ! yyerror(char *s) { ! cvs_log(LP_ERR, "%s", s); return (0); } --- 495,508 ---- /* ARGSUSED */ static int ! yyerror(const char *fmt, ...) { ! va_list vap; ! ! va_start(vap, fmt); ! cvs_vlog(LP_ERR, fmt, vap); ! va_end(vap); ! return (0); } *************** *** 804,812 **** { struct tm *tm, gmt; struct timeb ftz; ! time_t Start; ! time_t tod; ! time_t nowtime; yyInput = p; if (now == NULL) { --- 816,822 ---- { struct tm *tm, gmt; struct timeb ftz; ! time_t Start, tod, nowtime; yyInput = p; if (now == NULL) {