diff mplayer.c @ 19104:2ec2301183cd

marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org
author reynaldo
date Sat, 15 Jul 2006 16:03:12 +0000
parents 75327b24e06f
children 08888397444e
line wrap: on
line diff
--- a/mplayer.c	Sat Jul 15 15:27:09 2006 +0000
+++ b/mplayer.c	Sat Jul 15 16:03:12 2006 +0000
@@ -519,7 +519,7 @@
   current_module=NULL;
 }
 
-static void exit_player_with_rc(char* how, int rc){
+static void exit_player_with_rc(const char* how, int rc){
 
   uninit_player(INITED_ALL);
 #ifdef HAVE_X11
@@ -554,7 +554,7 @@
   exit(rc);
 }
 
-void exit_player(char* how){
+void exit_player(const char* how){
   exit_player_with_rc(how, 1);
 }
 
@@ -2258,7 +2258,7 @@
     return m_option_list_find(mp_properties,name);
 }
 
-int mp_property_do(char* name,int action, void* val) {
+int mp_property_do(const char* name,int action, void* val) {
     m_option_t* p = mp_property_find(name);
     if(!p) return M_PROPERTY_UNAVAILABLE;
     return m_property_do(p,action,val);