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
This commit is contained in:
parent
d677792c20
commit
e5f62bf901
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153848
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user