summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-11-07 09:21:01 +0000
committerphk <phk@FreeBSD.org>1997-11-07 09:21:01 +0000
commitccc7e7fa9fe3a03b7d36abe1e051eb84caa89480 (patch)
tree1bd13ce5c0eb05db5c842c70e635cd52797224f3 /sys/dev/syscons
parent4d268889365c1d9414bbca2f6c63d87db74ec37b (diff)
downloadFreeBSD-src-ccc7e7fa9fe3a03b7d36abe1e051eb84caa89480.zip
FreeBSD-src-ccc7e7fa9fe3a03b7d36abe1e051eb84caa89480.tar.gz
Rename some local variables to avoid shadowing other local variables.
Found by: -Wshadow
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 7f6d409..0b4104b 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.236 1997/10/26 07:36:13 yokota Exp $
+ * $Id: syscons.c,v 1.237 1997/11/07 08:52:42 phk Exp $
*/
#include "sc.h"
@@ -1087,15 +1087,15 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
cur_console->status |= MOUSE_VISIBLE;
if ((MOUSE_TTY)->t_state & TS_ISOPEN) {
u_char buf[5];
- int i;
+ int j;
buf[0] = 0x80 | ((~mouse->u.data.buttons) & 0x07);
buf[1] = (mouse->u.data.x & 0x1fe >> 1);
buf[3] = (mouse->u.data.x & 0x1ff) - buf[1];
buf[2] = -(mouse->u.data.y & 0x1fe >> 1);
buf[4] = -(mouse->u.data.y & 0x1ff) - buf[2];
- for (i=0; i<5; i++)
- (*linesw[(MOUSE_TTY)->t_line].l_rint)(buf[i],MOUSE_TTY);
+ for (j=0; j<5; j++)
+ (*linesw[(MOUSE_TTY)->t_line].l_rint)(buf[j],MOUSE_TTY);
}
if (cur_console->mouse_signal) {
cur_console->mouse_buttons = mouse->u.data.buttons;
OpenPOWER on IntegriCloud