changeset 26288:6e53dfe38594

Add some const qualifiers to reduce warnings
author uau
date Wed, 02 Apr 2008 01:01:22 +0000
parents 1bee753acda2
children aa0c534db455
files m_config.c mplayer.c
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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)