projects
/
profile
/
ivi
/
murphy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system-controller: increase array size to accomodate new message types
[profile/ivi/murphy.git]
/
src
/
plugins
/
system-controller
/
plugin-system-controller.c
diff --git
a/src/plugins/system-controller/plugin-system-controller.c
b/src/plugins/system-controller/plugin-system-controller.c
index
be85ca7
..
8b88d37
100644
(file)
--- a/
src/plugins/system-controller/plugin-system-controller.c
+++ b/
src/plugins/system-controller/plugin-system-controller.c
@@
-344,7
+344,7
@@
static int send_message(client_t *c, mrp_json_t *msg)
static const char *message_name(int code)
{
#define MAX_CLASS 0x08
-#define MAX_TYPE 0x3
0
+#define MAX_TYPE 0x3
2
#define CLASS(code) (((code) & 0xf0000) >> 16)
#define TYPE(code) (((code) & 0x0ffff))
static char *names[MAX_CLASS + 1][MAX_TYPE + 1];