ISO C90: Move declaration to the beginning of the function
devices.c: In function ‘DoChangeKeyboardControl’: devices.c:1768: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9fe9b6e4ef
commit
111fdef74d
|
@ -1682,6 +1682,7 @@ DoChangeKeyboardControl (ClientPtr client, DeviceIntPtr keybd, XID *vlist,
|
|||
int key = DO_ALL;
|
||||
BITS32 index2;
|
||||
int mask = vmask, i;
|
||||
XkbEventCauseRec cause;
|
||||
|
||||
ctrl = keybd->kbdfeed->ctrl;
|
||||
while (vmask) {
|
||||
|
@ -1765,7 +1766,6 @@ DoChangeKeyboardControl (ClientPtr client, DeviceIntPtr keybd, XID *vlist,
|
|||
return BadValue;
|
||||
}
|
||||
|
||||
XkbEventCauseRec cause;
|
||||
XkbSetCauseCoreReq(&cause,X_ChangeKeyboardControl,client);
|
||||
XkbSetIndicators(keybd,((led == DO_ALL) ? ~0L : (1L<<(led-1))),
|
||||
ctrl.leds, &cause);
|
||||
|
|
Loading…
Reference in New Issue
Block a user