summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/date.y
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-03-30 16:41:08 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-03-30 16:41:08 +0000
commit4d7767a2c530fcbe8440cbf831a5c9328d66b545 (patch)
tree7f383ad8b1e3d3e9f2cff457164f1de6faafb4f5 /usr.bin/cvs/date.y
parentb0b4d8604af32d5aa7ca8723ab246354704e2212 (diff)
allow this to be compiled on its own for testing.
ok jfb@
Diffstat (limited to 'usr.bin/cvs/date.y')
-rw-r--r--usr.bin/cvs/date.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/date.y b/usr.bin/cvs/date.y
index fad4c216f6f..685c3982b2d 100644
--- a/usr.bin/cvs/date.y
+++ b/usr.bin/cvs/date.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: date.y,v 1.4 2005/03/28 22:40:58 jfb Exp $ */
+/* $OpenBSD: date.y,v 1.5 2005/03/30 16:41:07 joris Exp $ */
/*
** Originally written by Steven M. Bellovin <smb@research.att.com> while
@@ -494,7 +494,11 @@ yyerror(const char *fmt, ...)
va_list vap;
va_start(vap, fmt);
+#if defined(TEST)
+ vprintf(fmt, vap);
+#else
cvs_vlog(LP_ERR, fmt, vap);
+#endif
va_end(vap);
return (0);