summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-11-09 15:55:56 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-11-09 15:55:56 +0000
commit5dbc898d5e5de8d1956080991a9873c685e276ba (patch)
tree5efa8a241a1ef32efcdaaa019afabbe5e6d0174d /usr.bin/cvs
parent653c1a046a09674cb5dc7159404f754a0f97cce5 (diff)
sync with usr.bin/rcs version.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/date.y18
1 files changed, 7 insertions, 11 deletions
diff --git a/usr.bin/cvs/date.y b/usr.bin/cvs/date.y
index a7893dff65d..f8ef4bfed21 100644
--- a/usr.bin/cvs/date.y
+++ b/usr.bin/cvs/date.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: date.y,v 1.13 2006/05/03 14:26:13 ray Exp $ */
+/* $OpenBSD: date.y,v 1.14 2006/11/09 15:55:55 xsa Exp $ */
/*
** Originally written by Steven M. Bellovin <smb@research.att.com> while
@@ -71,10 +71,10 @@ static time_t yyRelMonth;
static time_t yyRelSeconds;
-static int yyerror (const char *);
-static int yylex (void);
-static int yyparse (void);
-static int lookup (char *);
+static int yyerror(const char *);
+static int yylex(void);
+static int yyparse(void);
+static int lookup(char *);
%}
@@ -486,17 +486,13 @@ yyerror(const char *s)
char *str;
if (isspace(yyInput[0]) || !isprint(yyInput[0]))
- (void)xasprintf(&str, "%s: unexpected char 0x%02x in date string",
- s, 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);
-#if defined(TEST)
- printf("%s", str);
-#else
cvs_log(LP_ERR, "%s", str);
-#endif
xfree(str);
return (0);
}