summaryrefslogtreecommitdiffstats
path: root/lib/libcompat/regexp/regerror.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-26 23:19:32 +0000
committerderaadt <deraadt@openbsd.org>2003-06-26 23:19:32 +0000
commit4f348846623cc26e922fd5b6dd27c7c728ea22ff (patch)
treea6d801f09c9dfa132f666047e8dd97b80f235e29 /lib/libcompat/regexp/regerror.c
parentboring protos (diff)
downloadwireguard-openbsd-4f348846623cc26e922fd5b6dd27c7c728ea22ff.tar.xz
wireguard-openbsd-4f348846623cc26e922fd5b6dd27c7c728ea22ff.zip
ansi
Diffstat (limited to 'lib/libcompat/regexp/regerror.c')
-rw-r--r--lib/libcompat/regexp/regerror.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libcompat/regexp/regerror.c b/lib/libcompat/regexp/regerror.c
index 3f129ea329b..c98b8a3d4f7 100644
--- a/lib/libcompat/regexp/regerror.c
+++ b/lib/libcompat/regexp/regerror.c
@@ -1,16 +1,15 @@
-/* $OpenBSD: regerror.c,v 1.4 2000/06/30 16:00:06 millert Exp $ */
+/* $OpenBSD: regerror.c,v 1.5 2003/06/26 23:19:32 deraadt Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: regerror.c,v 1.4 2000/06/30 16:00:06 millert Exp $";
+static char *rcsid = "$OpenBSD: regerror.c,v 1.5 2003/06/26 23:19:32 deraadt Exp $";
#endif /* not lint */
#include <regexp.h>
#include <stdio.h>
-static void (*_new_regerror)() = NULL;
+static void (*_new_regerror)(const char *) = NULL;
void
-v8_regerror(s)
- const char *s;
+v8_regerror(const char *s)
{
if (_new_regerror != NULL)
_new_regerror(s);
@@ -20,8 +19,7 @@ v8_regerror(s)
}
void
-v8_setregerror(f)
- void (*f)();
+v8_setregerror(void (*f)(const char *))
{
_new_regerror = f;
}