Fix type_to_mask to return -1
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 5 Jun 2013 01:22:35 +0000 (11:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 26 Jun 2013 07:47:28 +0000 (17:47 +1000)
commitdc27c627a7ca7759b3cc917e2fa76dc83dcbc5bf
tree95757cf1d1408b67cda7bafd3dc5f27a3849f142
parent645d5d3a645cf2c3ec1813b13dd5a3144ee8f912
Fix type_to_mask to return -1

EV_SYN doesn't have a max, so 0 is not enough.

returning 0 on failure is a bad idea, as mask is unset.
libevdev/libevdev-util.h
libevdev/libevdev.c