diff mplayer.c @ 19053:75327b24e06f

marks several string parameters as const, as they are not modified inside the function, Patch by Stefan Huehner, stefan AT huehner-org
author reynaldo
date Thu, 13 Jul 2006 05:03:43 +0000
parents 330a11fcdab2
children 2ec2301183cd
line wrap: on
line diff
--- a/mplayer.c	Thu Jul 13 03:05:08 2006 +0000
+++ b/mplayer.c	Thu Jul 13 05:03:43 2006 +0000
@@ -1112,7 +1112,7 @@
  *  
  */
 
-static void set_osd_msg(int id, int level, int time, char* fmt, ...) {
+static void set_osd_msg(int id, int level, int time, const char* fmt, ...) {
     mp_osd_msg_t *msg,*last=NULL;
     va_list va;
     int r;
@@ -1243,7 +1243,7 @@
  *
  */
 
-void set_osd_bar(int type,char* name,double min,double max,double val) {
+void set_osd_bar(int type,const char* name,double min,double max,double val) {
     
     if(osd_level < 1) return;
     
@@ -2254,7 +2254,7 @@
     { NULL, NULL, NULL, 0, 0, 0, NULL }
 };
 
-m_option_t*  mp_property_find(char* name) {
+m_option_t*  mp_property_find(const char* name) {
     return m_option_list_find(mp_properties,name);
 }