summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-09-03 14:06:12 +0000
committeremaste <emaste@FreeBSD.org>2014-09-03 14:06:12 +0000
commit17962ed65582a1fb51dcc2b3d88ce3f8a9067d72 (patch)
treed307c35bad703c444c6446f1c6bbac1b08bbc400 /sys/dev/vt
parent41ee2454d86a5d5d93966dd7badebc8a999ed5ba (diff)
downloadFreeBSD-src-17962ed65582a1fb51dcc2b3d88ce3f8a9067d72.zip
FreeBSD-src-17962ed65582a1fb51dcc2b3d88ce3f8a9067d72.tar.gz
MFC r270288 by dumbbell: vt(4): Constify vt_buf argument of vtbuf_iscursor()
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev/vt')
-rw-r--r--sys/dev/vt/vt.h2
-rw-r--r--sys/dev/vt/vt_buf.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index c4e1ed7..6569c2c 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -192,7 +192,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);
diff --git a/sys/dev/vt/vt_buf.c b/sys/dev/vt/vt_buf.c
index 4003ce8..e6efcd2 100644
--- a/sys/dev/vt/vt_buf.c
+++ b/sys/dev/vt/vt_buf.c
@@ -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;
OpenPOWER on IntegriCloud