Skip to content
Snippets Groups Projects
Commit 624076ba authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Vladimir Davydov
Browse files

opt_def: make opt_def::enum_strs const char *const *

Enum keys are usually stored in a const array of const strings.
Fix opt_def::enum_strs type accordingly.

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring
parent 78b0d83a
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,9 @@ struct opt_def {
const char *enum_name;
int enum_size;
const char **enum_strs;
/** Enum key names. Passed to strnindex. */
const char *const *enum_strs;
/** Enum key count. Passed to strnindex. */
uint32_t enum_max;
/** MsgPack data decode callbacks. */
union {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment