diff options
author | wm4 <wm4@nowhere> | 2014-10-10 13:44:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-10 13:44:08 +0200 |
commit | 26bc6b48313dd0470a3998dace217148fc314271 (patch) | |
tree | 29073579b973380a248c89f4d4a8b2a97aa7e671 /common | |
parent | 7e4491a7a7e9ab41b38fd2ecb58f7b11731c9e05 (diff) | |
download | mpv-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 'common')
-rw-r--r-- | common/msg.c | 2 | ||||
-rw-r--r-- | common/msg_control.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c index ebd976eaa3..4a4ad80884 100644 --- a/common/msg.c +++ b/common/msg.c @@ -592,7 +592,7 @@ void mp_msg(struct mp_log *log, int lev, const char *format, ...) va_end(va); } -const char *mp_log_levels[MSGL_MAX + 1] = { +const char *const mp_log_levels[MSGL_MAX + 1] = { [MSGL_FATAL] = "fatal", [MSGL_ERR] = "error", [MSGL_WARN] = "warn", diff --git a/common/msg_control.h b/common/msg_control.h index 151117a68d..b0ceef01df 100644 --- a/common/msg_control.h +++ b/common/msg_control.h @@ -31,7 +31,7 @@ int mp_msg_open_stats_file(struct mpv_global *global, const char *path); struct bstr; int mp_msg_split_msglevel(struct bstr *s, struct bstr *out_mod, int *out_level); -extern const char *mp_log_levels[MSGL_MAX + 1]; +extern const char *const mp_log_levels[MSGL_MAX + 1]; extern const int mp_mpv_log_levels[MSGL_MAX + 1]; #endif |