Author: dumbbell Date: Fri Aug 29 08:16:31 2014 New Revision: 270785 URL: http://svnweb.freebsd.org/changeset/base/270785
Log: vt(4): Change vb_history_size from "int" to "unsigned int" CID: 1230002, 1230003 MFC after: 1 week Modified: head/sys/dev/vt/vt.h head/sys/dev/vt/vt_buf.c Modified: head/sys/dev/vt/vt.h ============================================================================== --- head/sys/dev/vt/vt.h Fri Aug 29 08:11:05 2014 (r270784) +++ head/sys/dev/vt/vt.h Fri Aug 29 08:16:31 2014 (r270785) @@ -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 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); Modified: head/sys/dev/vt/vt_buf.c ============================================================================== --- head/sys/dev/vt/vt_buf.c Fri Aug 29 08:11:05 2014 (r270784) +++ head/sys/dev/vt/vt_buf.c Fri Aug 29 08:16:31 2014 (r270785) @@ -451,7 +451,7 @@ vtbuf_sethistory_size(struct vt_buf *vb, } 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; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"