diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-02-26 16:59:58 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-02-26 17:12:08 +1000 |
| commit | a67d1964ffa53622322736d32b48162d94c4208a (patch) | |
| tree | 419fcc6756a3228ecab81c91ecca27b4c41114d3 /libevdev/libevdev-names.c | |
| parent | 3799acd49ed6cb25e8838a49dafcf057415fe6e3 (diff) | |
| download | libevdev-a67d1964ffa53622322736d32b48162d94c4208a.tar.gz | |
Blacklist REP_MAX so it doesn't shadow REP_PERIOD
They have the same value, so the _MAX code would shadow the real code, causing
issues in any client that needs to get all event names from libevdev.
Specifically, the loop of:
for each code in 0 to max-for-type:
print(name)
would not show up the code (but the _MAX) code instead. This causes issues
with clients that rely on name resolution that works. And the _MAX values are
special values anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Diffstat (limited to 'libevdev/libevdev-names.c')
0 files changed, 0 insertions, 0 deletions
