diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-03-31 14:52:57 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-03-31 14:52:57 +0000 |
commit | 710bb2e6c8b2874406e48fa8ad24539290c98d41 (patch) | |
tree | d765285e0a38bc868e5068e2921c0be67de6c17d /Xi/chgfctl.c | |
parent | 7c44bb8c49656133eae675377edea55322d254ca (diff) |
Reindent with -cbi0.
Diffstat (limited to 'Xi/chgfctl.c')
-rw-r--r-- | Xi/chgfctl.c | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/Xi/chgfctl.c b/Xi/chgfctl.c index 76914dcad..d0acc593b 100644 --- a/Xi/chgfctl.c +++ b/Xi/chgfctl.c @@ -146,26 +146,26 @@ ProcXChangeFeedbackControl(ClientPtr client) } break; case StringFeedbackClass: - { - register char n; - xStringFeedbackCtl *f = ((xStringFeedbackCtl *) & stuff[1]); + { + register char n; + xStringFeedbackCtl *f = ((xStringFeedbackCtl *) & stuff[1]); - if (client->swapped) { - swaps(&f->num_keysyms, n); - } - if (len != ((sizeof(xStringFeedbackCtl) >> 2) + f->num_keysyms)) { - SendErrorToClient(client, IReqCode, X_ChangeFeedbackControl, - 0, BadLength); + if (client->swapped) { + swaps(&f->num_keysyms, n); + } + if (len != ((sizeof(xStringFeedbackCtl) >> 2) + f->num_keysyms)) { + SendErrorToClient(client, IReqCode, X_ChangeFeedbackControl, + 0, BadLength); + return Success; + } + for (s = dev->stringfeed; s; s = s->next) + if (s->ctrl.id == ((xStringFeedbackCtl *) & stuff[1])->id) { + ChangeStringFeedback(client, dev, stuff->mask, s, + (xStringFeedbackCtl *) & stuff[1]); return Success; } - for (s = dev->stringfeed; s; s = s->next) - if (s->ctrl.id == ((xStringFeedbackCtl *) & stuff[1])->id) { - ChangeStringFeedback(client, dev, stuff->mask, s, - (xStringFeedbackCtl *) & stuff[1]); - return Success; - } - break; - } + break; + } case IntegerFeedbackClass: if (len != (sizeof(xIntegerFeedbackCtl) >> 2)) { SendErrorToClient(client, IReqCode, X_ChangeFeedbackControl, @@ -446,8 +446,9 @@ ChangeIntegerFeedback(ClientPtr client, DeviceIntPtr dev, */ int -ChangeStringFeedback(ClientPtr client, DeviceIntPtr dev, long unsigned int mask, - StringFeedbackPtr s, xStringFeedbackCtl * f) +ChangeStringFeedback(ClientPtr client, DeviceIntPtr dev, + long unsigned int mask, StringFeedbackPtr s, + xStringFeedbackCtl * f) { register char n; register long *p; @@ -495,8 +496,9 @@ ChangeStringFeedback(ClientPtr client, DeviceIntPtr dev, long unsigned int mask, */ int -ChangeBellFeedback(ClientPtr client, DeviceIntPtr dev, long unsigned int mask, - BellFeedbackPtr b, xBellFeedbackCtl * f) +ChangeBellFeedback(ClientPtr client, DeviceIntPtr dev, + long unsigned int mask, BellFeedbackPtr b, + xBellFeedbackCtl * f) { register char n; int t; |