summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2014-08-29 08:16:31 +0000
committerdumbbell <dumbbell@FreeBSD.org>2014-08-29 08:16:31 +0000
commite4c6496a5495c21f28177fe48837a541435a4af6 (patch)
tree2d723efbed64f1ef4bc5cc8441ce98703fc2b9a1
parentc7aafdef00f69f8a6c776d3f404422e0045f0a38 (diff)
downloadFreeBSD-src-e4c6496a5495c21f28177fe48837a541435a4af6.zip
FreeBSD-src-e4c6496a5495c21f28177fe48837a541435a4af6.tar.gz
vt(4): Change vb_history_size from "int" to "unsigned int"
CID: 1230002, 1230003 MFC after: 1 week
-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 bb83efb..b9303ba 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 1c76ea5a..d468173 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;
OpenPOWER on IntegriCloud