aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2014-08-29 08:16:31 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2014-08-29 08:16:31 +0000
commitb7fe496196b7059d212bdf15f914033d25ab9eaf (patch)
tree2d723efbed64f1ef4bc5cc8441ce98703fc2b9a1 /sys
parent69322f44edcf37c83891ef95f77acfe19a35e03e (diff)
downloadsrc-b7fe496196b7059d212bdf15f914033d25ab9eaf.tar.gz
src-b7fe496196b7059d212bdf15f914033d25ab9eaf.zip
vt(4): Change vb_history_size from "int" to "unsigned int"
CID: 1230002, 1230003 MFC after: 1 week
Notes
Notes: svn path=/head/; revision=270785
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vt/vt.h4
-rw-r--r--sys/dev/vt/vt_buf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index bb83efbcd90c..b9303bae3274 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -182,7 +182,7 @@ struct vt_buf {
#define VBF_MTX_INIT 0x4 /* Mutex initialized. */
#define VBF_SCROLL 0x8 /* scroll locked mode. */
#define VBF_HISTORY_FULL 0x10 /* All rows filled. */
- int vb_history_size;
+ unsigned int vb_history_size;
#define VBF_DEFAULT_HISTORY_SIZE 500
int vb_roffset; /* (b) History rows offset. */
int vb_curroffset; /* (b) Saved rows offset. */
@@ -200,7 +200,7 @@ void vtbuf_copy(struct vt_buf *, const term_rect_t *, const term_pos_t *);
void vtbuf_fill_locked(struct vt_buf *, const term_rect_t *, term_char_t);
void vtbuf_init_early(struct vt_buf *);
void vtbuf_init(struct vt_buf *, const term_pos_t *);
-void vtbuf_grow(struct vt_buf *, const term_pos_t *, int);
+void vtbuf_grow(struct vt_buf *, const term_pos_t *, unsigned int);
void vtbuf_putchar(struct vt_buf *, const term_pos_t *, term_char_t);
void vtbuf_cursor_position(struct vt_buf *, const term_pos_t *);
void vtbuf_scroll_mode(struct vt_buf *vb, int yes);
diff --git a/sys/dev/vt/vt_buf.c b/sys/dev/vt/vt_buf.c
index 1c76ea5a0cbd..d468173605e6 100644
--- a/sys/dev/vt/vt_buf.c
+++ b/sys/dev/vt/vt_buf.c
@@ -451,7 +451,7 @@ vtbuf_sethistory_size(struct vt_buf *vb, int size)
}
void
-vtbuf_grow(struct vt_buf *vb, const term_pos_t *p, int history_size)
+vtbuf_grow(struct vt_buf *vb, const term_pos_t *p, unsigned int history_size)
{
term_char_t *old, *new, **rows, **oldrows, **copyrows, *row;
int bufsize, rowssize, w, h, c, r;