summaryrefslogtreecommitdiffstats
path: root/lib/libcompat/regexp/regerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcompat/regexp/regerror.c')
-rw-r--r--lib/libcompat/regexp/regerror.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/libcompat/regexp/regerror.c b/lib/libcompat/regexp/regerror.c
deleted file mode 100644
index 86dd12fa6f5..00000000000
--- a/lib/libcompat/regexp/regerror.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* $OpenBSD: regerror.c,v 1.7 2009/10/27 23:59:28 deraadt Exp $ */
-#include <err.h>
-#include <regexp.h>
-#include <stdio.h>
-
-static void (*_new_regerror)(const char *) = NULL;
-
-void
-v8_regerror(const char *s)
-{
- if (_new_regerror != NULL)
- _new_regerror(s);
- else
- warnx("%s", s);
- return;
-}
-
-void
-v8_setregerror(void (*f)(const char *))
-{
- _new_regerror = f;
-}