diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-22 13:29:15 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-23 09:20:17 +1000 |
commit | a31d03ec55413b5e124372388a61f971cf6b0b56 (patch) | |
tree | 4ba8f80b394b0a48e75a9d66f095fb24aadd1797 | |
parent | 244a5000cc92b12addb9817210f73aaea363f25d (diff) |
Define SYN_MAX instead of a hardcoded value
This is a bump from the previous one since current kernels have SYN_DROPPED
of 3 - might as well update to this value.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r-- | evtest.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -69,6 +69,10 @@ #ifndef EV_SYN #define EV_SYN 0 #endif +#ifndef SYN_MAX +#define SYN_MAX 3 +#define SYN_CNT (SYN_MAX + 1) +#endif #ifndef SYN_MT_REPORT #define SYN_MT_REPORT 2 #endif @@ -525,7 +529,8 @@ static const char * const sounds[SND_MAX + 1] = { NAME_ELEMENT(SND_TONE) }; -static const char * const syns[3] = { +static const char * const syns[SYN_MAX + 1] = { + [0 ... SYN_MAX] = NULL, NAME_ELEMENT(SYN_REPORT), NAME_ELEMENT(SYN_CONFIG), NAME_ELEMENT(SYN_MT_REPORT) |