diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-10 22:40:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-10 22:40:03 +0000 |
commit | bbfd9c202c1429ac6639fd26a1e4712d509d6813 (patch) | |
tree | 37c3c35129a56715dcd5391f40fdda394ea1c220 /usr.sbin/wsmoused/wsmoused.h | |
parent | 4395ebb5d960c7e79e0751653ed70652bb5c750e (diff) |
Use a larger type to store ``resolution'', so that comparisons against
values over 255 are actually meaningful.
Diffstat (limited to 'usr.sbin/wsmoused/wsmoused.h')
-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 */ |