summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-10 18:32:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-10 18:44:40 +0200
commit5fc5170c5575fbf80434b6c0a6efefe007eebf87 (patch)
treebd3ac65410ba9175ad1d57b0aa0cffd41117deaf /libavutil
parent18b1381c5f14887025763d7dbb2fd58b3fe060dd (diff)
avutil/opt: make const tables static const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 8354a25a27..c035307053 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -1506,7 +1506,7 @@ int main(void)
printf("\nTesting av_set_options_string()\n");
{
TestContext test_ctx = { 0 };
- const char *options[] = {
+ static const char * const options[] = {
"",
":",
"=",
@@ -1565,7 +1565,7 @@ int main(void)
printf("\nTesting av_opt_set_from_string()\n");
{
TestContext test_ctx = { 0 };
- const char *options[] = {
+ static const char * const options[] = {
"",
"5",
"5:hello",
@@ -1576,7 +1576,7 @@ int main(void)
" 5 : hello : size = pal ",
"a_very_long_option_name_that_will_need_to_be_ellipsized_around_here=42"
};
- const char *shorthand[] = { "num", "string", NULL };
+ static const char * const shorthand[] = { "num", "string", NULL };
test_ctx.class = &test_class;
av_opt_set_defaults(&test_ctx);