summaryrefslogtreecommitdiff
path: root/lib/libcompat/regexp/regerror.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-07-24 05:39:13 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-07-24 05:39:13 +0000
commit0dd75bd11ad0521c80a620c4281c705e8a742521 (patch)
tree17d649ee54198f42c142904c8df9a8a70e89902f /lib/libcompat/regexp/regerror.c
parentaa71ea20647db6f1b471021155e549be8ce4dc93 (diff)
Prevent the v8 style regexp library from clashing with the POSIX regex.
Inspired by the changes to BSD/OS (and the bug they caught), but I didn't go and look at the BSD/OS sources.
Diffstat (limited to 'lib/libcompat/regexp/regerror.c')
-rw-r--r--lib/libcompat/regexp/regerror.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/libcompat/regexp/regerror.c b/lib/libcompat/regexp/regerror.c
index b9d2902dedc..1063b9722d2 100644
--- a/lib/libcompat/regexp/regerror.c
+++ b/lib/libcompat/regexp/regerror.c
@@ -1,22 +1,15 @@
+/* $OpenBSD: regerror.c,v 1.2 1996/07/24 05:39:11 downsj Exp $ */
#ifndef lint
-static char *rcsid = "$Id: regerror.c,v 1.1 1995/10/18 08:42:35 deraadt Exp $";
+static char *rcsid = "$OpenBSD: regerror.c,v 1.2 1996/07/24 05:39:11 downsj Exp $";
#endif /* not lint */
#include <regexp.h>
#include <stdio.h>
void
-regerror(s)
+v8_regerror(s)
const char *s;
{
-#ifdef ERRAVAIL
- error("regexp: %s", s);
-#else
-/*
- fprintf(stderr, "regexp(3): %s\n", s);
- exit(1);
-*/
- return; /* let std. egrep handle errors */
-#endif
- /* NOTREACHED */
+ warnx(s);
+ return;
}