diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 04:58:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 04:58:38 +0000 |
commit | ec2fbd7461ac0e754d00506fa9a86c444a1e4b09 (patch) | |
tree | 38f8c7a1494d7f87d79c577d4b8cc7c1291311bd /lib | |
parent | e66d2d846822c48160b77e70736fec44a62f435b (diff) |
delete breaks that are not needed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcompat/regexp/regexp.c | 9 |
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; |