From 99f5fef0ea5671d41fb7b737fbc3e4236542a757 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 10 Jun 2014 23:56:05 +0200 Subject: 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. --- options/m_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'options/m_config.c') 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" -- cgit v1.2.3