diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-02-11 22:01:11 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-26 00:58:46 +0100 |
commit | 41a0ba729fb67efdc5f7bd50f73f145cf5d8a153 (patch) | |
tree | 4000aa2277bf5ae33598fb0acee7ad415f73cfc1 /nx-X11/programs/Xserver/Xi/chgprop.c | |
parent | 5bfafee5087bcbc37b7f8db246b20d7a4bba5731 (diff) | |
download | nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.tar.gz nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.tar.bz2 nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.zip |
Xi: reformat code, ansify
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/chgprop.c')
-rw-r--r-- | nx-X11/programs/Xserver/Xi/chgprop.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/nx-X11/programs/Xserver/Xi/chgprop.c b/nx-X11/programs/Xserver/Xi/chgprop.c index af8c6d6d5..662e5bd8c 100644 --- a/nx-X11/programs/Xserver/Xi/chgprop.c +++ b/nx-X11/programs/Xserver/Xi/chgprop.c @@ -79,17 +79,17 @@ SOFTWARE. int SProcXChangeDeviceDontPropagateList(client) register ClientPtr client; - { +{ REQUEST(xChangeDeviceDontPropagateListReq); swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xChangeDeviceDontPropagateListReq); swapl(&stuff->window); swaps(&stuff->count); REQUEST_FIXED_SIZE(xChangeDeviceDontPropagateListReq, - stuff->count * sizeof(CARD32)); + stuff->count * sizeof(CARD32)); SwapLongs((CARD32 *) (&stuff[1]), stuff->count); - return(ProcXChangeDeviceDontPropagateList(client)); - } + return (ProcXChangeDeviceDontPropagateList(client)); +} /*********************************************************************** * @@ -100,43 +100,43 @@ SProcXChangeDeviceDontPropagateList(client) int ProcXChangeDeviceDontPropagateList (client) register ClientPtr client; - { - int i; - WindowPtr pWin; - struct tmask tmp[EMASKSIZE]; - OtherInputMasks *others; +{ + int i; + WindowPtr pWin; + struct tmask tmp[EMASKSIZE]; + OtherInputMasks *others; REQUEST(xChangeDeviceDontPropagateListReq); REQUEST_AT_LEAST_SIZE(xChangeDeviceDontPropagateListReq); - if (stuff->length !=(sizeof(xChangeDeviceDontPropagateListReq)>>2) + + if (stuff->length != (sizeof(xChangeDeviceDontPropagateListReq) >> 2) + stuff->count) { - SendErrorToClient (client, IReqCode, X_ChangeDeviceDontPropagateList, 0, - BadLength); + SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0, + BadLength); return Success; - } + } - pWin = (WindowPtr) LookupWindow (stuff->window, client); + pWin = (WindowPtr) LookupWindow(stuff->window, client); if (!pWin) { client->errorValue = stuff->window; - SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0, - BadWindow); + SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0, + BadWindow); return Success; - } + } if (stuff->mode != AddToList && stuff->mode != DeleteFromList) { client->errorValue = stuff->window; - SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0, - BadMode); + SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0, + BadMode); return Success; - } + } - if (CreateMaskFromList (client, (XEventClass *)&stuff[1], + if (CreateMaskFromList(client, (XEventClass *) & stuff[1], stuff->count, tmp, NULL, X_ChangeDeviceDontPropagateList) != Success) - return Success; + return Success; others = wOtherInputMasks(pWin); if (!others && stuff->mode == DeleteFromList) @@ -156,8 +156,8 @@ ProcXChangeDeviceDontPropagateList (client) SendErrorToClient ( client, IReqCode, X_ChangeDeviceDontPropagateList, 0, BadClass); return Success; - } } + } return Success; - } +} |