aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/devbell.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-02-15 21:25:27 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-26 00:58:46 +0100
commitb0abdf7bd8284b1edf39c13e1863ecc420fd68e4 (patch)
tree191171d5cfdee1851ad3b5246be6363f9d1f3445 /nx-X11/programs/Xserver/Xi/devbell.c
parent7aca428ffe10b2cffca8fe01962aef421a5a5645 (diff)
downloadnx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.tar.gz
nx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.tar.bz2
nx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.zip
Xi: reformat
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/devbell.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/devbell.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/nx-X11/programs/Xserver/Xi/devbell.c b/nx-X11/programs/Xserver/Xi/devbell.c
index 8738436b8..f594e7f36 100644
--- a/nx-X11/programs/Xserver/Xi/devbell.c
+++ b/nx-X11/programs/Xserver/Xi/devbell.c
@@ -103,26 +103,22 @@ ProcXDeviceBell(register ClientPtr client)
REQUEST_SIZE_MATCH(xDeviceBellReq);
dev = LookupDeviceIntRec(stuff->deviceid);
- if (dev == NULL)
- {
+ if (dev == NULL) {
client->errorValue = stuff->deviceid;
SendErrorToClient(client, IReqCode, X_DeviceBell, 0, BadDevice);
return Success;
}
- if (stuff->percent < -100 || stuff->percent > 100)
- {
+ if (stuff->percent < -100 || stuff->percent > 100) {
client->errorValue = stuff->percent;
SendErrorToClient(client, IReqCode, X_DeviceBell, 0, BadValue);
return Success;
}
- if (stuff->feedbackclass == KbdFeedbackClass)
- {
+ if (stuff->feedbackclass == KbdFeedbackClass) {
for (k = dev->kbdfeed; k; k = k->next)
if (k->ctrl.id == stuff->feedbackid)
break;
- if (!k)
- {
+ if (!k) {
client->errorValue = stuff->feedbackid;
SendErrorToClient(client, IReqCode, X_DeviceBell, 0, BadValue);
return Success;
@@ -131,14 +127,11 @@ ProcXDeviceBell(register ClientPtr client)
proc = k->BellProc;
ctrl = (void *)&(k->ctrl);
class = KbdFeedbackClass;
- }
- else if (stuff->feedbackclass == BellFeedbackClass)
- {
+ } else if (stuff->feedbackclass == BellFeedbackClass) {
for (b = dev->bell; b; b = b->next)
if (b->ctrl.id == stuff->feedbackid)
break;
- if (!b)
- {
+ if (!b) {
client->errorValue = stuff->feedbackid;
SendErrorToClient(client, IReqCode, X_DeviceBell, 0, BadValue);
return Success;
@@ -147,9 +140,7 @@ ProcXDeviceBell(register ClientPtr client)
proc = b->BellProc;
ctrl = (void *)&(b->ctrl);
class = BellFeedbackClass;
- }
- else
- {
+ } else {
client->errorValue = stuff->feedbackclass;
SendErrorToClient(client, IReqCode, X_DeviceBell, 0, BadValue);
return Success;