summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-11-05 11:49:12 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-09 07:59:45 +1000
commit5a455e0c80d433adc4109ebf313fd92afa194545 (patch)
treed66648a27161343c127ce59ed4b9a5509f01e216 /Xi
parent9b89b91c685426c9944f7fc8890f436c18b7583c (diff)
Xi: rename two variables from ptr to dev.
They were named ptr when everything was in one function to save one more variable. Now that the stuff is split out, "dev" makes more sense. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xichangehierarchy.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/Xi/xichangehierarchy.c b/Xi/xichangehierarchy.c
index 5818d2cab..b7140d5e5 100644
--- a/Xi/xichangehierarchy.c
+++ b/Xi/xichangehierarchy.c
@@ -325,14 +325,14 @@ unwind:
static int
detach_slave(ClientPtr client, xXIDetachSlaveInfo *c, int flags[MAXDEVICES])
{
- DeviceIntPtr ptr;
+ DeviceIntPtr dev;
int rc;
- rc = dixLookupDevice(&ptr, c->deviceid, client, DixManageAccess);
+ rc = dixLookupDevice(&dev, c->deviceid, client, DixManageAccess);
if (rc != Success)
goto unwind;
- if (IsMaster(ptr))
+ if (IsMaster(dev))
{
client->errorValue = c->deviceid;
rc = BadDevice;
@@ -340,15 +340,15 @@ detach_slave(ClientPtr client, xXIDetachSlaveInfo *c, int flags[MAXDEVICES])
}
/* Don't allow changes to XTest Devices, these are fixed */
- if (IsXTestDevice(ptr, NULL))
+ if (IsXTestDevice(dev, NULL))
{
client->errorValue = c->deviceid;
rc = BadDevice;
goto unwind;
}
- AttachDevice(client, ptr, NULL);
- flags[ptr->id] |= XISlaveDetached;
+ AttachDevice(client, dev, NULL);
+ flags[dev->id] |= XISlaveDetached;
unwind:
return rc;
@@ -358,15 +358,15 @@ static int
attach_slave(ClientPtr client, xXIAttachSlaveInfo *c,
int flags[MAXDEVICES])
{
- DeviceIntPtr ptr;
+ DeviceIntPtr dev;
DeviceIntPtr newmaster;
int rc;
- rc = dixLookupDevice(&ptr, c->deviceid, client, DixManageAccess);
+ rc = dixLookupDevice(&dev, c->deviceid, client, DixManageAccess);
if (rc != Success)
goto unwind;
- if (IsMaster(ptr))
+ if (IsMaster(dev))
{
client->errorValue = c->deviceid;
rc = BadDevice;
@@ -374,7 +374,7 @@ attach_slave(ClientPtr client, xXIAttachSlaveInfo *c,
}
/* Don't allow changes to XTest Devices, these are fixed */
- if (IsXTestDevice(ptr, NULL))
+ if (IsXTestDevice(dev, NULL))
{
client->errorValue = c->deviceid;
rc = BadDevice;
@@ -391,15 +391,15 @@ attach_slave(ClientPtr client, xXIAttachSlaveInfo *c,
goto unwind;
}
- if (!((IsPointerDevice(newmaster) && IsPointerDevice(ptr)) ||
- (IsKeyboardDevice(newmaster) && IsKeyboardDevice(ptr))))
+ if (!((IsPointerDevice(newmaster) && IsPointerDevice(dev)) ||
+ (IsKeyboardDevice(newmaster) && IsKeyboardDevice(dev))))
{
rc = BadDevice;
goto unwind;
}
- AttachDevice(client, ptr, newmaster);
- flags[ptr->id] |= XISlaveAttached;
+ AttachDevice(client, dev, newmaster);
+ flags[dev->id] |= XISlaveAttached;
unwind:
return rc;