From 624076ba8f062075ceafd3870f9a8391b3fda08d Mon Sep 17 00:00:00 2001 From: Vladimir Davydov <vdavydov@tarantool.org> Date: Tue, 26 Apr 2022 17:22:52 +0300 Subject: [PATCH] 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 --- src/box/opt_def.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/box/opt_def.h b/src/box/opt_def.h index bb4621438f..ad2de4942e 100644 --- a/src/box/opt_def.h +++ b/src/box/opt_def.h @@ -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 { -- GitLab