summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2005-12-29 18:35:28 +0000
committernetchild <netchild@FreeBSD.org>2005-12-29 18:35:28 +0000
commit7a859bc28ab4a6cca33342f8a26392a2cffb4f61 (patch)
tree79203096a4c2cf6fef0bc03a44933b153ce66794 /sys
parent94113937cd8ec6a904c99099a20e217f802fe49a (diff)
downloadFreeBSD-src-7a859bc28ab4a6cca33342f8a26392a2cffb4f61.zip
FreeBSD-src-7a859bc28ab4a6cca33342f8a26392a2cffb4f61.tar.gz
Sync the type (and size, compare mousestatus_t in /usr/include/sys/mouse.h)
of a variable according to the usage (after increasing the number of max buttons this may matter). Noticed by: flz
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ums.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 8b2e516..b883757 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -425,7 +425,7 @@ ums_intr(xfer, addr, status)
struct ums_softc *sc = addr;
u_char *ibuf;
int dx, dy, dz, dt;
- u_char buttons = 0;
+ int buttons = 0;
int i;
#define UMS_BUT(i) ((i) < 3 ? (((i) + 2) % 3) : (i))
OpenPOWER on IntegriCloud