diff options
Diffstat (limited to 'lib/libcompat/regexp/regerror.c')
-rw-r--r-- | lib/libcompat/regexp/regerror.c | 12 |
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; } |