mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 13:00:13 +01:00
Xi: replace loop with memset
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
8f2292b683
commit
16894df1ff
1 changed files with 1 additions and 4 deletions
|
|
@ -175,10 +175,7 @@ CreateMaskFromList(ClientPtr client, XEventClass * list, int count,
|
|||
int device;
|
||||
DeviceIntPtr tdev;
|
||||
|
||||
for (i = 0; i < EMASKSIZE; i++) {
|
||||
mask[i].mask = 0;
|
||||
mask[i].dev = NULL;
|
||||
}
|
||||
memset(mask, 0, EMASKSIZE * sizeof(struct tmask));
|
||||
|
||||
for (i = 0; i < count; i++, list++) {
|
||||
device = *list >> 8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue