summaryrefslogtreecommitdiff
path: root/src/XTest.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-19 17:38:08 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-19 17:38:08 +0930
commit56bc832134b4f6884999797f0f0c1b846602088d (patch)
tree623dad5a1a02e5ac7e94edcf689cc2b87071d6a5 /src/XTest.c
parentf3971bca54ff6018758642303108eec975d80cd5 (diff)
Rename parameters to clarify QueryExtension call.
These parameters are not treated as input. Rename them to make the inner workings slightly more obvious. X.Org Bug 14511 <http://bugs.freedesktop.org/show_bug.cgi?id=14511>
Diffstat (limited to 'src/XTest.c')
-rw-r--r--src/XTest.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/XTest.c b/src/XTest.c
index eccf1fb..82ad52a 100644
--- a/src/XTest.c
+++ b/src/XTest.c
@@ -97,10 +97,11 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xtest_info)
*****************************************************************************/
Bool
-XTestQueryExtension (dpy, event_basep, error_basep, majorp, minorp)
+XTestQueryExtension (dpy, event_base_return, error_base_return,
+ major_return, minor_return)
Display *dpy;
- int *event_basep, *error_basep;
- int *majorp, *minorp;
+ int *event_base_return, *error_base_return;
+ int *major_return, *minor_return;
{
XExtDisplayInfo *info = find_display (dpy);
register xXTestGetVersionReq *req;
@@ -120,10 +121,10 @@ XTestQueryExtension (dpy, event_basep, error_basep, majorp, minorp)
}
UnlockDisplay(dpy);
SyncHandle();
- *event_basep = info->codes->first_event;
- *error_basep = info->codes->first_error;
- *majorp = rep.majorVersion;
- *minorp = rep.minorVersion;
+ *event_base_return = info->codes->first_event;
+ *error_base_return = info->codes->first_error;
+ *major_return = rep.majorVersion;
+ *minor_return = rep.minorVersion;
return True;
} else {
return False;