diff options
author | 2007-04-10 22:40:02 +0000 | |
---|---|---|
committer | 2007-04-10 22:40:02 +0000 | |
commit | 3b12fe2e74db0504680bb5392193edd39a1a3eb3 (patch) | |
tree | cd0ee64530d68a1372ffa2f4fb1dfe66020b7105 | |
parent | Add support for a fourth axis on wsmouse devices, e.g. on the Apple Might (diff) | |
download | wireguard-openbsd-3b12fe2e74db0504680bb5392193edd39a1a3eb3.tar.xz wireguard-openbsd-3b12fe2e74db0504680bb5392193edd39a1a3eb3.zip |
Use a larger type to store ``resolution'', so that comparisons against
values over 255 are actually meaningful.
-rw-r--r-- | usr.sbin/wsmoused/wsmoused.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.h b/usr.sbin/wsmoused/wsmoused.h index 9f756c81bf3..d345cb9b7f2 100644 --- a/usr.sbin/wsmoused/wsmoused.h +++ b/usr.sbin/wsmoused/wsmoused.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmoused.h,v 1.4 2002/02/15 02:18:39 deraadt Exp $ */ +/* $OpenBSD: wsmoused.h,v 1.5 2007/04/10 22:40:02 miod Exp $ */ /* * Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon @@ -103,7 +103,7 @@ typedef struct mouse_s { int baudrate; int old_baudrate; unsigned char rate; /* report rate */ - unsigned char resolution; /* MOUSE_RES_XXX or a positive number */ + unsigned int resolution; /* MOUSE_RES_XXX or a positive number */ int zmap; /* MOUSE_{X|Y}AXIS or a button number */ int wmode; /* wheel mode button number */ int mfd; /* mouse file descriptor */ |