summaryrefslogtreecommitdiff
path: root/bin/ed/main.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/main.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/main.c')
-rw-r--r--bin/ed/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c
index 37ece8058b7..0674da79b01 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.47 2015/10/04 15:03:24 millert Exp $ */
+/* $OpenBSD: main.c,v 1.48 2015/10/04 15:23:24 millert Exp $ */
/* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */
/* main.c: This file contains the main control and user-interface routines
@@ -459,11 +459,11 @@ exec_command(void)
extern int u_current_addr;
extern int u_addr_last;
- static pattern_t *pat = NULL;
+ static regex_t *pat = NULL;
static int sgflag = 0;
static int sgnum = 0;
- pattern_t *tpat;
+ regex_t *tpat;
char *fnp;
int gflag = 0;
int sflags = 0;
@@ -911,7 +911,7 @@ check_addr_range(int n, int m)
pattern in a given direction. wrap around begin/end of editor buffer if
necessary */
int
-get_matching_node_addr(pattern_t *pat, int dir)
+get_matching_node_addr(regex_t *pat, int dir)
{
char *s;
int n = current_addr;