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 /player/loadfile.c | |
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 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 712ba58f02..43cb127e5a 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -826,7 +826,7 @@ static void open_subtitles_from_resolve(struct MPContext *mpctx) } } -static const char *font_mimetypes[] = { +static const char *const font_mimetypes[] = { "application/x-truetype-font", "application/vnd.ms-opentype", "application/x-font-ttf", @@ -834,7 +834,7 @@ static const char *font_mimetypes[] = { NULL }; -static const char *font_exts[] = {".ttf", ".ttc", ".otf", NULL}; +static const char *const font_exts[] = {".ttf", ".ttc", ".otf", NULL}; static bool attachment_is_font(struct mp_log *log, struct demux_attachment *att) { |