summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regcomp.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-04-30 05:51:09 +0000
committertholo <tholo@openbsd.org>1997-04-30 05:51:09 +0000
commit63d6eaa8ef513ec3f11d29e66989df47e6c88795 (patch)
treed4c48cea095066cb6f8cabda31bf42af77e8d470 /lib/libc/regex/regcomp.c
parentDon't do pointer arithmetic on void pointers (diff)
downloadwireguard-openbsd-63d6eaa8ef513ec3f11d29e66989df47e6c88795.tar.xz
wireguard-openbsd-63d6eaa8ef513ec3f11d29e66989df47e6c88795.zip
Remove dead code and variables
Diffstat (limited to 'lib/libc/regex/regcomp.c')
-rw-r--r--lib/libc/regex/regcomp.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index e1aad4f4b57..8e8cc319f62 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
#else
-static char rcsid[] = "$OpenBSD: regcomp.c,v 1.4 1997/04/28 20:44:59 millert Exp $";
+static char rcsid[] = "$OpenBSD: regcomp.c,v 1.5 1997/04/30 05:51:09 tholo Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -107,7 +107,6 @@ static int freezeset __P((struct parse *p, cset *cs));
static int firstch __P((struct parse *p, cset *cs));
static int nch __P((struct parse *p, cset *cs));
static void mcadd __P((struct parse *p, cset *cs, char *cp));
-static char *mcfind __P((cset *cs, char *cp));
static void mcinvert __P((struct parse *p, cset *cs));
static void mccase __P((struct parse *p, cset *cs));
static int isinsets __P((struct re_guts *g, int c));
@@ -1265,25 +1264,6 @@ register char *cp;
}
/*
- - mcfind - find a collating element in a cset
- == static char *mcfind(register cset *cs, register char *cp);
- */
-static char *
-mcfind(cs, cp)
-register cset *cs;
-register char *cp;
-{
- register char *p;
-
- if (cs->multis == NULL)
- return(NULL);
- for (p = cs->multis; *p != '\0'; p += strlen(p) + 1)
- if (strcmp(cp, p) == 0)
- return(p);
- return(NULL);
-}
-
-/*
- mcinvert - invert the list of collating elements in a cset
== static void mcinvert(register struct parse *p, register cset *cs);
*