No functional effect as the size would end up being the same anyway
due to the values of KEY_MAX and LED_MAX.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
{
int rc;
int i;
- unsigned long keystate[NLONGS(KEY_MAX)];
+ unsigned long keystate[NLONGS(KEY_CNT)];
rc = ioctl(dev->fd, EVIOCGKEY(sizeof(keystate)), keystate);
if (rc < 0)
{
int rc;
int i;
- unsigned long ledstate[NLONGS(LED_MAX)];
+ unsigned long ledstate[NLONGS(LED_CNT)];
rc = ioctl(dev->fd, EVIOCGLED(sizeof(ledstate)), ledstate);
if (rc < 0)