diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-11-07 09:21:01 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-11-07 09:21:01 +0000 |
commit | 0abc78a697c255c3714f1bf30700fb054847437c (patch) | |
tree | 2031022ba1d321b1659d351b0c7c9a246695944b /sys/isa/syscons.c | |
parent | 4a11ca4e29ff701a15b6c4de4e99483f97182ea6 (diff) |
Rename some local variables to avoid shadowing other local variables.
Found by: -Wshadow
Notes
Notes:
svn path=/head/; revision=31017
Diffstat (limited to 'sys/isa/syscons.c')
-rw-r--r-- | sys/isa/syscons.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index 7f6d4094f336..0b4104bbfa73 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/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; |