vt(4): Constify vt_buf argument of vtbuf_iscursor()

MFC after:	1 week
This commit is contained in:
Jean-Sébastien Pédron 2014-08-21 18:26:32 +00:00
parent c59adfc6a5
commit c6e1a98786
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270288
2 changed files with 3 additions and 3 deletions

View file

@ -197,7 +197,7 @@ void vtbuf_cursor_position(struct vt_buf *, const term_pos_t *);
void vtbuf_scroll_mode(struct vt_buf *vb, int yes);
void vtbuf_undirty(struct vt_buf *, term_rect_t *, struct vt_bufmask *);
void vtbuf_sethistory_size(struct vt_buf *, int);
int vtbuf_iscursor(struct vt_buf *vb, int row, int col);
int vtbuf_iscursor(const struct vt_buf *vb, int row, int col);
void vtbuf_cursor_visibility(struct vt_buf *, int);
#ifndef SC_NO_CUTPASTE
void vtbuf_mouse_cursor_position(struct vt_buf *vb, int col, int row);

View file

@ -148,7 +148,7 @@ vtbuf_wth(struct vt_buf *vb, int row)
/* Translate history row to current view row number. */
static int
vtbuf_htw(struct vt_buf *vb, int row)
vtbuf_htw(const struct vt_buf *vb, int row)
{
/*
@ -162,7 +162,7 @@ vtbuf_htw(struct vt_buf *vb, int row)
}
int
vtbuf_iscursor(struct vt_buf *vb, int row, int col)
vtbuf_iscursor(const struct vt_buf *vb, int row, int col)
{
int sc, sr, ec, er, tmp;