# HG changeset patch # User uau # Date 1207098082 0 # Node ID 6e53dfe385949d9ca184e30bf8eeebe633e1ed60 # Parent 1bee753acda22b3e75b4b2156efaa0ef089ac1b9 Add some const qualifiers to reduce warnings diff -r 1bee753acda2 -r 6e53dfe38594 m_config.c --- a/m_config.c Tue Apr 01 22:00:54 2008 +0000 +++ b/m_config.c Wed Apr 02 01:01:22 2008 +0000 @@ -20,10 +20,10 @@ #define MAX_PROFILE_DEPTH 20 static int -parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src); +parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, int src); static void -set_profile(m_option_t *opt, void* dst, void* src); +set_profile(const m_option_t *opt, void* dst, void* src); static int show_profile(m_option_t *opt, char* name, char *param); @@ -491,7 +491,8 @@ } static int -parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src) { +parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, int src) +{ m_config_t* config = opt->priv; char** list = NULL; int i,r; @@ -526,7 +527,7 @@ } static void -set_profile(m_option_t *opt, void* dst, void* src) { +set_profile(const m_option_t *opt, void *dst, void *src) { m_config_t* config = opt->priv; m_profile_t* p; char** list = NULL; diff -r 1bee753acda2 -r 6e53dfe38594 mplayer.c --- a/mplayer.c Tue Apr 01 22:00:54 2008 +0000 +++ b/mplayer.c Wed Apr 02 01:01:22 2008 +0000 @@ -2182,7 +2182,7 @@ } if (insert) { extern vf_info_t vf_info_ass; - vf_info_t* libass_vfs[] = {&vf_info_ass, NULL}; + const vf_info_t* libass_vfs[] = {&vf_info_ass, NULL}; char* vf_arg[] = {"auto", "1", NULL}; vf_instance_t* vf_ass = vf_open_plugin(libass_vfs,sh_video->vfilter,"ass",vf_arg); if (vf_ass)