summaryrefslogtreecommitdiff
path: root/src/XChgKMap.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/XChgKMap.c
parent6b055729fd0f89eedd2bf00befd8e42804f12b4a (diff)
Mass reindent. Sorry.XORG-7_0_99_901
Diffstat (limited to 'src/XChgKMap.c')
-rw-r--r--src/XChgKMap.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/XChgKMap.c b/src/XChgKMap.c
index 8ad77ca..d0a334f 100644
--- a/src/XChgKMap.c
+++ b/src/XChgKMap.c
@@ -61,23 +61,23 @@ SOFTWARE.
#include "XIint.h"
int
-XChangeDeviceKeyMapping (dpy, dev, first, syms_per_code, keysyms, count)
- register Display *dpy;
- XDevice *dev;
- int first;
- int syms_per_code;
- KeySym *keysyms;
- int count;
- {
+XChangeDeviceKeyMapping(dpy, dev, first, syms_per_code, keysyms, count)
+ register Display *dpy;
+ XDevice *dev;
+ int first;
+ int syms_per_code;
+ KeySym *keysyms;
+ int count;
+{
register long nbytes;
xChangeDeviceKeyMappingReq *req;
- XExtDisplayInfo *info = XInput_find_display (dpy);
+ XExtDisplayInfo *info = XInput_find_display(dpy);
- LockDisplay (dpy);
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(ChangeDeviceKeyMapping,req);
+ GetReq(ChangeDeviceKeyMapping, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_ChangeDeviceKeyMapping;
req->deviceid = dev->device_id;
@@ -85,10 +85,10 @@ XChangeDeviceKeyMapping (dpy, dev, first, syms_per_code, keysyms, count)
req->keyCodes = count;
req->keySymsPerKeyCode = syms_per_code;
req->length += count * syms_per_code;
- nbytes = syms_per_code * count * sizeof (CARD32);
- Data (dpy, (char *)keysyms, nbytes);
+ nbytes = syms_per_code * count * sizeof(CARD32);
+ Data(dpy, (char *)keysyms, nbytes);
UnlockDisplay(dpy);
SyncHandle();
return (Success);
- }
+}