diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-03-31 14:50:24 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-03-31 14:50:24 +0000 |
commit | f50ac4deec13dfd070715f636887e12f6301070f (patch) | |
tree | be5857de4d38d644938ad796fcfaab2c37b9f99f /src/XChgKbd.c | |
parent | 6b055729fd0f89eedd2bf00befd8e42804f12b4a (diff) |
Mass reindent. Sorry.XORG-7_0_99_901
Diffstat (limited to 'src/XChgKbd.c')
-rw-r--r-- | src/XChgKbd.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/XChgKbd.c b/src/XChgKbd.c index b3e2c06..feba239 100644 --- a/src/XChgKbd.c +++ b/src/XChgKbd.c @@ -61,28 +61,27 @@ SOFTWARE. #include "XIint.h" int -XChangeKeyboardDevice (dpy, dev) - register Display *dpy; - XDevice *dev; - { - xChangeKeyboardDeviceReq *req; - xChangeKeyboardDeviceReply rep; - XExtDisplayInfo *info = XInput_find_display (dpy); - - LockDisplay (dpy); +XChangeKeyboardDevice(dpy, dev) + register Display *dpy; + XDevice *dev; +{ + xChangeKeyboardDeviceReq *req; + xChangeKeyboardDeviceReply rep; + XExtDisplayInfo *info = XInput_find_display(dpy); + + LockDisplay(dpy); if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1) return (NoSuchExtension); - GetReq(ChangeKeyboardDevice,req); + GetReq(ChangeKeyboardDevice, req); req->reqType = info->codes->major_opcode; req->ReqType = X_ChangeKeyboardDevice; req->deviceid = dev->device_id; rep.status = Success; - (void) _XReply (dpy, (xReply *) &rep, 0, xTrue); + (void)_XReply(dpy, (xReply *) & rep, 0, xTrue); UnlockDisplay(dpy); SyncHandle(); return (rep.status); - } - +} |