aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-26 13:20:20 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-26 13:25:51 -0400
commitd4bed025ed6de39e517422b076b5af9d7b31abb7 (patch)
treef526383fe6ebe2702f46cf34233327fc75b38a0e /src/command.h
parenta82e949c00aceaedd9d9a76ddcc3c88c9cad3d80 (diff)
downloadkutter-d4bed025ed6de39e517422b076b5af9d7b31abb7.tar.gz
kutter-d4bed025ed6de39e517422b076b5af9d7b31abb7.tar.xz
kutter-d4bed025ed6de39e517422b076b5af9d7b31abb7.zip
command: Store the command parsing information directly in array
Instead of defining an array of pointers, just define the array directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.h b/src/command.h
index 609becd9..5bd6faf4 100644
--- a/src/command.h
+++ b/src/command.h
@@ -50,7 +50,7 @@ enum {
PT_uint32, PT_int32, PT_uint16, PT_int16, PT_byte,
PT_string, PT_progmem_buffer, PT_buffer,
};
-extern const struct command_parser * const command_index[];
+extern const struct command_parser command_index[];
extern const uint8_t command_index_size;
extern const uint8_t command_identify_data[];
extern const uint32_t command_identify_size;