From 829e590a4085d422b4270c3d5bf54fe2ac7873cb Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 10 Dec 2015 11:54:05 +1100 Subject: [PATCH] Remove 'doc' arg from next_mark. It doesn't need it. Signed-off-by: NeilBrown --- core-mark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core-mark.c b/core-mark.c index 66c960ad..0b5a9013 100644 --- a/core-mark.c +++ b/core-mark.c @@ -419,7 +419,7 @@ struct mark *doc_new_mark(struct doc *d, int view) * */ -static struct mark *next_mark(struct doc *d, struct mark *m) +static struct mark *next_mark(struct mark *m) { if (m->all.next == NULL) return NULL; @@ -533,7 +533,7 @@ wint_t mark_next(struct doc *d, struct mark *m) wint_t ret; struct mark *m2 = NULL; - while ((m2 = next_mark(d, m)) != NULL && + while ((m2 = next_mark(m)) != NULL && mark_same(d, m, m2)) mark_forward_over(m, m2); @@ -542,7 +542,7 @@ wint_t mark_next(struct doc *d, struct mark *m) return ret; /* FIXME do I need to do this - is it precise enough? */ - while ((m2 = next_mark(d, m)) != NULL && + while ((m2 = next_mark(m)) != NULL && mark_same(d, m, m2)) mark_forward_over(m, m2); return ret; -- 2.39.5