From b27fa2f6a9aae6a0a87897200334b193aa2882dd Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Tue, 25 Jul 2006 08:22:33 +0000 Subject: Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change. --- usr.bin/mg/grep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/mg/grep.c') diff --git a/usr.bin/mg/grep.c b/usr.bin/mg/grep.c index 2270f6b6078..8fe20157b9a 100644 --- a/usr.bin/mg/grep.c +++ b/usr.bin/mg/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.30 2006/06/01 05:34:52 jason Exp $ */ +/* $OpenBSD: grep.c,v 1.31 2006/07/25 08:22:32 kjell Exp $ */ /* * Copyright (c) 2001 Artur Grabowski . * Copyright (c) 2005 Kjell Wooding . @@ -269,7 +269,7 @@ compile_mode(const char *name, const char *command) else addlinef(bp, "Command finished at %s", timestr); - bp->b_dotp = lforw(bp->b_linep); /* go to first line */ + bp->b_dotp = lforw(bp->b_headp); /* go to first line */ bp->b_modes[0] = name_mode("fundamental"); bp->b_modes[1] = name_mode("compile"); bp->b_nmodes = 1; @@ -297,7 +297,7 @@ compile_goto_error(int f, int n) compile_win = curwp; compile_buffer = curbp; - last = lback(compile_buffer->b_linep); + last = lback(compile_buffer->b_headp); retry: /* last line is compilation result */ @@ -340,7 +340,7 @@ compile_goto_error(int f, int n) return (TRUE); fail: free(line); - if (curwp->w_dotp != lback(curbp->b_linep)) { + if (curwp->w_dotp != lback(curbp->b_headp)) { curwp->w_dotp = lforw(curwp->w_dotp); curwp->w_flag |= WFMOVE; goto retry; @@ -359,7 +359,7 @@ next_error(int f, int n) } curwp = compile_win; curbp = compile_buffer; - if (curwp->w_dotp == lback(curbp->b_linep)) { + if (curwp->w_dotp == lback(curbp->b_headp)) { ewprintf("No more hits"); return (FALSE); } -- cgit v1.2.3