diff options
| author | Tim Vanderhoek <hoek@FreeBSD.org> | 1999-12-27 20:53:35 +0000 |
|---|---|---|
| committer | Tim Vanderhoek <hoek@FreeBSD.org> | 1999-12-27 20:53:35 +0000 |
| commit | 79bf951d43787aef3f5adc7bb86e29c2d05efb9d (patch) | |
| tree | 721ed479aa240b477d95a73f1f4a5aa3f18ba061 | |
| parent | a57e826a490048aa2a80d79b252e473c6a1ba24b (diff) | |
Notes
| -rw-r--r-- | usr.bin/more/linenum.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/more/linenum.c b/usr.bin/more/linenum.c index dd3d82d5e0ec1..c0d281664a3f3 100644 --- a/usr.bin/more/linenum.c +++ b/usr.bin/more/linenum.c @@ -36,6 +36,11 @@ static char sccsid[] = "@(#)linenum.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif /* not lint */ + /* * Code to handle displaying line numbers. * @@ -121,7 +126,7 @@ clr_linenum() * Initialize the anchor. */ anchor.next = anchor.prev = &anchor; - anchor.gap = 0; + anchor.gap = (off_t)0; anchor.pos = (off_t)0; anchor.line = 1; } @@ -227,8 +232,8 @@ add_lnum(line, pos) mingap = p->gap; } } - spare->next->prev = spare->prev; - spare->prev->next = spare->next; + calcgap(spare->next->prev = spare->prev); + calcgap(spare->prev->next = spare->next); } } |
