diff options
author | 2006-04-09 04:58:37 +0000 | |
---|---|---|
committer | 2006-04-09 04:58:37 +0000 | |
commit | 950234077befe990d8d76ee78792a199ce7d010a (patch) | |
tree | a8b5bf3da20d44646e48a8f080a2d363de130b0a /lib/libcompat/regexp/regexp.c | |
parent | a few rlim_t casts, kind of ok otto and millert (diff) | |
download | wireguard-openbsd-950234077befe990d8d76ee78792a199ce7d010a.tar.xz wireguard-openbsd-950234077befe990d8d76ee78792a199ce7d010a.zip |
delete breaks that are not needed
Diffstat (limited to 'lib/libcompat/regexp/regexp.c')
-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; |