From 0ca7d78aeb8035ef52c1415170e1257493d789fd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 19 May 2008 17:24:04 +0930 Subject: Change parameter names for QueryVersion/QueryExtension. Simply to clarify the inner workings of the lib and that these parameters are treated as return values only. X.Org Bug 14511 --- src/Xdamage.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Xdamage.c b/src/Xdamage.c index c699a15..a3966d6 100644 --- a/src/Xdamage.c +++ b/src/Xdamage.c @@ -282,14 +282,16 @@ XDamageEventToWire(Display *dpy, XEvent *event, xEvent *wire) } Bool -XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep) +XDamageQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return) { XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy); if (XDamageHasExtension(info)) { - *event_basep = info->codes->first_event; - *error_basep = info->codes->first_error; + *event_base_return = info->codes->first_event; + *error_base_return = info->codes->first_error; return True; } else @@ -298,15 +300,15 @@ XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep) Status XDamageQueryVersion (Display *dpy, - int *major_versionp, - int *minor_versionp) + int *major_version_return, + int *minor_version_return) { XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy); XDamageCheckExtension (dpy, info, 0); - *major_versionp = info->major_version; - *minor_versionp = info->minor_version; + *major_version_return = info->major_version; + *minor_version_return = info->minor_version; return 1; } -- cgit v1.2.3