summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/mouse.c
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
committertg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
commit47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae (patch)
treef69b902c12889e39d57e3d83d55293ee0abee74b /usr.bin/doscmd/mouse.c
parent97507091ff20d3dc72113dfbd0c9532423d3acb4 (diff)
downloadFreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.zip
FreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.tar.gz
Clean up the code a bit:
- add $FreeBSD$; - remove unused variables; - add missing headers and prototypes; - -Wshadow.
Diffstat (limited to 'usr.bin/doscmd/mouse.c')
-rw-r--r--usr.bin/doscmd/mouse.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/doscmd/mouse.c b/usr.bin/doscmd/mouse.c
index 93416b8..1aa4ae0 100644
--- a/usr.bin/doscmd/mouse.c
+++ b/usr.bin/doscmd/mouse.c
@@ -37,7 +37,7 @@
mouse_t mouse_status;
u_char *mouse_area = 0;
-int nmice = 0;
+int nmice = 1;
static void
mouse_probe(void)
@@ -49,7 +49,6 @@ int33(regcontext_t *REGS)
{
u_long vec;
u_short mask;
- void *addr;
int i;
if (!nmice) {
@@ -145,8 +144,6 @@ int33(regcontext_t *REGS)
mouse_probe();
R_CX = mouse_status.x - mouse_status.lastx;
R_DX = mouse_status.y - mouse_status.lasty;
- mouse_status.lastx - mouse_status.x;
- mouse_status.lasty - mouse_status.y;
break;
case 0x0c: /* Set event handler */
@@ -231,7 +228,7 @@ int33(regcontext_t *REGS)
mouse_status.doubling = R_DX;
break;
- case 0x1b: /* set mouse sensitivity */
+ case 0x1b: /* get mouse sensitivity */
R_BX = mouse_status.hmickey;
R_CX = mouse_status.vmickey;
R_DX = mouse_status.doubling;
OpenPOWER on IntegriCloud