summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-10 13:44:08 +0200
committerwm4 <wm4@nowhere>2014-10-10 13:44:08 +0200
commit26bc6b48313dd0470a3998dace217148fc314271 (patch)
tree29073579b973380a248c89f4d4a8b2a97aa7e671 /sub
parent7e4491a7a7e9ab41b38fd2ecb58f7b11731c9e05 (diff)
downloadmpv-26bc6b48313dd0470a3998dace217148fc314271.tar.bz2
mpv-26bc6b48313dd0470a3998dace217148fc314271.tar.xz
Add some missing "const"s
The one in msg.c was mistakenly removed with commit e99a37f6. I didn't actually test the change in ao_sndio.c (but obviously "ap" shouldn't be static).
Diffstat (limited to 'sub')
-rw-r--r--sub/osd.h4
-rw-r--r--sub/osd_dummy.c4
-rw-r--r--sub/osd_libass.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sub/osd.h b/sub/osd.h
index 2662e2b67f..e1da9bccd2 100644
--- a/sub/osd.h
+++ b/sub/osd.h
@@ -219,8 +219,8 @@ void osd_destroy_backend(struct osd_state *osd);
// doesn't need locking
void osd_get_function_sym(char *buffer, size_t buffer_size, int osd_function);
-extern const char *osd_ass_0;
-extern const char *osd_ass_1;
+extern const char *const osd_ass_0;
+extern const char *const osd_ass_1;
// defined in backend, but locks if required
void osd_object_get_resolution(struct osd_state *osd, int obj,
diff --git a/sub/osd_dummy.c b/sub/osd_dummy.c
index b9178e1925..5a33321d07 100644
--- a/sub/osd_dummy.c
+++ b/sub/osd_dummy.c
@@ -6,8 +6,8 @@
#include "talloc.h"
#include "osd.h"
-const char *osd_ass_0 = "";
-const char *osd_ass_1 = "";
+const char *const osd_ass_0 = "";
+const char *const osd_ass_1 = "";
void osd_init_backend(struct osd_state *osd)
{
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index 03d5040dbf..3275cc59e6 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -160,8 +160,8 @@ void osd_get_function_sym(char *buffer, size_t buffer_size, int osd_function)
}
// Same trick as above: never valid UTF-8, so we expect it's free for use.
-const char *osd_ass_0 = "\xFD";
-const char *osd_ass_1 = "\xFE";
+const char *const osd_ass_0 = "\xFD";
+const char *const osd_ass_1 = "\xFE";
static void mangle_ass(bstr *dst, const char *in)
{