svn commit: r271024 - stable/10/sys/dev/vt

Ed Maste emaste at FreeBSD.org
Wed Sep 3 14:06:12 UTC 2014


Author: emaste
Date: Wed Sep  3 14:06:12 2014
New Revision: 271024
URL: http://svnweb.freebsd.org/changeset/base/271024

Log:
  MFC r270288 by dumbbell: vt(4): Constify vt_buf argument of vtbuf_iscursor()
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/dev/vt/vt.h
  stable/10/sys/dev/vt/vt_buf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/vt.h
==============================================================================
--- stable/10/sys/dev/vt/vt.h	Wed Sep  3 14:00:37 2014	(r271023)
+++ stable/10/sys/dev/vt/vt.h	Wed Sep  3 14:06:12 2014	(r271024)
@@ -192,7 +192,7 @@ void vtbuf_cursor_position(struct vt_buf
 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);

Modified: stable/10/sys/dev/vt/vt_buf.c
==============================================================================
--- stable/10/sys/dev/vt/vt_buf.c	Wed Sep  3 14:00:37 2014	(r271023)
+++ stable/10/sys/dev/vt/vt_buf.c	Wed Sep  3 14:06:12 2014	(r271024)
@@ -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;
 


More information about the svn-src-all mailing list