summaryrefslogtreecommitdiffstats
path: root/lib/libcompat/regexp/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcompat/regexp/regexp.c')
-rw-r--r--lib/libcompat/regexp/regexp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libcompat/regexp/regexp.c b/lib/libcompat/regexp/regexp.c
index b1e3b965248..dee45ed3efd 100644
--- a/lib/libcompat/regexp/regexp.c
+++ b/lib/libcompat/regexp/regexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regexp.c,v 1.4 2003/03/16 03:16:45 deraadt Exp $ */
+/* $OpenBSD: regexp.c,v 1.5 2006/04/09 04:58:37 deraadt Exp $ */
/*
* regcomp and regexec -- regsub and regerror are elsewhere
@@ -36,7 +36,7 @@
*/
#ifndef lint
-static char *rcsid = "$OpenBSD: regexp.c,v 1.4 2003/03/16 03:16:45 deraadt Exp $";
+static char *rcsid = "$OpenBSD: regexp.c,v 1.5 2006/04/09 04:58:37 deraadt Exp $";
#endif /* not lint */
#include <regexp.h>
@@ -539,17 +539,14 @@ int *flagp;
case '\n':
case ')':
FAIL("internal urp"); /* Supposed to be caught earlier. */
- break;
case '?':
case '+':
case '*':
FAIL("?+* follows nothing");
- break;
case '\\':
switch (*regparse++) {
case '\0':
FAIL("trailing \\");
- break;
case '<':
ret = regnode(WORDA);
break;
@@ -1069,11 +1066,9 @@ char *prog;
break;
case END:
return(1); /* Success! */
- break;
default:
v8_regerror("memory corruption");
return(0);
- break;
}
scan = next;