diff options
author | wm4 <wm4@nowhere> | 2014-06-10 23:56:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-11 00:39:14 +0200 |
commit | 99f5fef0ea5671d41fb7b737fbc3e4236542a757 (patch) | |
tree | c01912d00e64a7783cb7109b3d1e2dc2390b3a7d /options | |
parent | ad4b7a8c967f9d13ceeaffff25d156d848b68445 (diff) | |
download | mpv-99f5fef0ea5671d41fb7b737fbc3e4236542a757.tar.bz2 mpv-99f5fef0ea5671d41fb7b737fbc3e4236542a757.tar.xz |
Add more const
While I'm not very fond of "const", it's important for declarations
(it decides whether a symbol is emitted in a read-only or read/write
section). Fix all these cases, so we have writeable global data only
when we really need.
Diffstat (limited to 'options')
-rw-r--r-- | options/m_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options/m_config.c b/options/m_config.c index b0b06bc271..2ebf17bb70 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -38,7 +38,7 @@ static const union m_option_value default_value; -static const char *replaced_opts; +static const char *const replaced_opts; // Profiles allow to predefine some sets of options that can then // be applied later on with the internal -profile option. @@ -912,7 +912,7 @@ void *m_sub_options_copy(void *talloc_ctx, const struct m_sub_options *opts, } // This is used for printing error messages on unknown options. -static const char *replaced_opts = +static const char *const replaced_opts = "|a52drc#--ad-lavc-ac3drc=level" "|afm#--ad" "|aspect#--video-aspect" |