summaryrefslogtreecommitdiffstats
path: root/options/m_config_frontend.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2021-10-03 18:31:45 +0100
committerDudemanguy <random342@airmail.cc>2021-11-15 14:02:08 +0000
commitb44f522dba55c9e9031328e70209493111eea757 (patch)
tree1b7e417f32dca16c753fc4d8a5c46345c4bceec6 /options/m_config_frontend.c
parentf09396ab7d584311a9784006eca53f6379e7218b (diff)
downloadmpv-b44f522dba55c9e9031328e70209493111eea757.tar.bz2
mpv-b44f522dba55c9e9031328e70209493111eea757.tar.xz
options: const annotate all m_opt_choice_alternatives accessors
Constant data, most accessors are good but some were missing the explicit notation. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'options/m_config_frontend.c')
-rw-r--r--options/m_config_frontend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_config_frontend.c b/options/m_config_frontend.c
index fdb03e0898..0506bcbfb3 100644
--- a/options/m_config_frontend.c
+++ b/options/m_config_frontend.c
@@ -858,7 +858,7 @@ void m_config_print_option_list(const struct m_config *config, const char *name)
MP_INFO(config, " %s%-30s", prefix, co->name);
if (opt->type == &m_option_type_choice) {
MP_INFO(config, " Choices:");
- struct m_opt_choice_alternatives *alt = opt->priv;
+ const struct m_opt_choice_alternatives *alt = opt->priv;
for (int n = 0; alt[n].name; n++)
MP_INFO(config, " %s", alt[n].name);
if (opt->min < opt->max)