summaryrefslogtreecommitdiff
path: root/bin/ed/re.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-10-04 15:23:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-10-04 15:23:25 +0000
commitbca7820f6d7d6ed76cf0693b7090e778c03308b4 (patch)
treee99dbbe84c0c7fcc4dd92f9bba0baa54107d3c13 /bin/ed/re.c
parent056d154b1a27de5b2d2f86066ac045ec10f4b332 (diff)
Remove useless pattern_t typedef, POSIX regex is here to stay so
just use regex_t directly.
Diffstat (limited to 'bin/ed/re.c')
-rw-r--r--bin/ed/re.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c
index d985b79ad8b..29bba37f4f3 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.13 2015/07/28 17:46:52 deraadt Exp $ */
+/* $OpenBSD: re.c,v 1.14 2015/10/04 15:23:24 millert Exp $ */
/* $NetBSD: re.c,v 1.14 1995/03/21 09:04:48 cgd Exp $ */
/* re.c: This file contains the regular expression interface routines for
@@ -38,10 +38,10 @@ char errmsg[PATH_MAX + 40] = "";
/* get_compiled_pattern: return pointer to compiled pattern from command
buffer */
-pattern_t *
+regex_t *
get_compiled_pattern(void)
{
- static pattern_t *exp = NULL;
+ static regex_t *exp = NULL;
char *exps;
char delimiter;
@@ -59,7 +59,7 @@ get_compiled_pattern(void)
/* buffer alloc'd && not reserved */
if (exp && !patlock)
regfree(exp);
- else if ((exp = malloc(sizeof(pattern_t))) == NULL) {
+ else if ((exp = malloc(sizeof(regex_t))) == NULL) {
perror(NULL);
seterrmsg("out of memory");
return NULL;