summaryrefslogtreecommitdiff
path: root/src/XChgPnt.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-03-31 14:50:24 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-03-31 14:50:24 +0000
commitf50ac4deec13dfd070715f636887e12f6301070f (patch)
treebe5857de4d38d644938ad796fcfaab2c37b9f99f /src/XChgPnt.c
parent6b055729fd0f89eedd2bf00befd8e42804f12b4a (diff)
Mass reindent. Sorry.XORG-7_0_99_901
Diffstat (limited to 'src/XChgPnt.c')
-rw-r--r--src/XChgPnt.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/XChgPnt.c b/src/XChgPnt.c
index c7248fd..9e0a617 100644
--- a/src/XChgPnt.c
+++ b/src/XChgPnt.c
@@ -61,21 +61,21 @@ SOFTWARE.
#include "XIint.h"
int
-XChangePointerDevice (dpy, dev, xaxis, yaxis)
- register Display *dpy;
- XDevice *dev;
- int xaxis;
- int yaxis;
- {
- xChangePointerDeviceReq *req;
- xChangePointerDeviceReply rep;
- XExtDisplayInfo *info = XInput_find_display (dpy);
-
- LockDisplay (dpy);
+XChangePointerDevice(dpy, dev, xaxis, yaxis)
+ register Display *dpy;
+ XDevice *dev;
+ int xaxis;
+ int yaxis;
+{
+ xChangePointerDeviceReq *req;
+ xChangePointerDeviceReply rep;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(ChangePointerDevice,req);
+ GetReq(ChangePointerDevice, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_ChangePointerDevice;
req->deviceid = dev->device_id;
@@ -83,10 +83,9 @@ XChangePointerDevice (dpy, dev, xaxis, yaxis)
req->yaxis = yaxis;
rep.status = Success;
- (void) _XReply (dpy, (xReply *) &rep, 0, xTrue);
+ (void)_XReply(dpy, (xReply *) & rep, 0, xTrue);
UnlockDisplay(dpy);
SyncHandle();
return (rep.status);
- }
-
+}