aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 19:02:36 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 19:02:36 -0800
commit984a869c985f8cc334cc40bd5b387e11d9f9ba29 (patch)
tree52924e7275843295607666408c51f0718bf61819 /bp.c
parent5d1ffd61440a9563d10e921538cbfdc4e21bbd09 (diff)
Renaming 'op' member fields to 'pat'
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bp.c b/bp.c
index 124c18e..380a43d 100644
--- a/bp.c
+++ b/bp.c
@@ -179,7 +179,7 @@ static void sig_handler(int sig) { (void)sig; cleanup(); }
static void confirm_replacements(file_t *f, match_t *m, confirm_t *confirm)
{
if (*confirm == CONFIRM_ALL) return;
- if (m->op->type == VM_REPLACE) {
+ if (m->pat->type == VM_REPLACE) {
if (*confirm == CONFIRM_NONE) {
m->skip_replacement = 1;
goto check_children;
@@ -426,7 +426,7 @@ int main(int argc, char *argv[])
if (d) {
d->next = defs;
defs = d;
- str = d->op->end;
+ str = d->pat->end;
} else {
pat_t *p = bp_pattern(arg_file, str);
check(p, "Pattern failed to compile: %s", flag);