diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-16 10:55:09 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-30 14:26:55 +1000 |
commit | 16894df1ffb6fe21bf723dd954578e8d934799ca (patch) | |
tree | fa393e5432dadcc163f3bc53f6547f6d9b36b133 /Xi | |
parent | 8f2292b683f591052da2fe94fb3831a3c9a5aa61 (diff) |
Xi: replace loop with memset
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/grabdev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Xi/grabdev.c b/Xi/grabdev.c index 443ef56c1..9c6c429ed 100644 --- a/Xi/grabdev.c +++ b/Xi/grabdev.c @@ -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; |