Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2014 18:26:33 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270288 - head/sys/dev/vt
Message-ID:  <201408211826.s7LIQXXd011028@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Thu Aug 21 18:26:32 2014
New Revision: 270288
URL: http://svnweb.freebsd.org/changeset/base/270288

Log:
  vt(4): Constify vt_buf argument of vtbuf_iscursor()
  
  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	Thu Aug 21 17:54:42 2014	(r270287)
+++ head/sys/dev/vt/vt.h	Thu Aug 21 18:26:32 2014	(r270288)
@@ -197,7 +197,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: head/sys/dev/vt/vt_buf.c
==============================================================================
--- head/sys/dev/vt/vt_buf.c	Thu Aug 21 17:54:42 2014	(r270287)
+++ head/sys/dev/vt/vt_buf.c	Thu Aug 21 18:26:32 2014	(r270288)
@@ -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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408211826.s7LIQXXd011028>