summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mouse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index e06dbc6..4cb9de1 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -2586,7 +2586,6 @@ static Bool
SetupMouse(InputInfoPtr pInfo)
{
MouseDevPtr pMse;
- int i;
int protoPara[8] = {-1, -1, -1, -1, -1, -1, -1, -1};
const char *name = NULL;
Bool automatic = FALSE;
@@ -2617,7 +2616,7 @@ SetupMouse(InputInfoPtr pInfo)
if (automatic) {
if (name) {
/* Possible protoPara overrides from SetupAuto. */
- for (i = 0; i < sizeof(pMse->protoPara); i++)
+ for (size_t i = 0; i < sizeof(pMse->protoPara); i++)
if (protoPara[i] != -1)
pMse->protoPara[i] = protoPara[i];
/* if we come here PnP/OS mouse probing was successful */