diff options
-rw-r--r-- | usr.bin/cvs/date.y | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/cvs/date.y b/usr.bin/cvs/date.y index e2888e5b0a1..6e30f6e4f6e 100644 --- a/usr.bin/cvs/date.y +++ b/usr.bin/cvs/date.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: date.y,v 1.17 2007/10/06 12:55:48 chl Exp $ */ +/* $OpenBSD: date.y,v 1.18 2008/02/16 01:00:00 cnst Exp $ */ /* ** Originally written by Steven M. Bellovin <smb@research.att.com> while @@ -485,17 +485,13 @@ static TABLE const MilitaryTable[] = { static int yyerror(const char *s) { +#if !defined(TEST) char *str; - if (isspace(yyInput[0]) || !isprint(yyInput[0])) - (void)xasprintf(&str, - "%s: unexpected char 0x%02x in date string", s, yyInput[0]); - else - (void)xasprintf(&str, "%s: unexpected %s in date string", - s, yyInput); - + (void)xasprintf(&str, "parsing date string: %s", s); cvs_log(LP_ERR, "%s", str); xfree(str); +#endif return (0); } |