From 1a16cbfec37875026b9ddb2839698d0d150b05cd Mon Sep 17 00:00:00 2001 From: reynaldo Date: Thu, 13 Jul 2006 05:03:43 +0000 Subject: marks several string parameters as const, as they are not modified inside the function, Patch by Stefan Huehner, stefan AT huehner-org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19058 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 41cc5b0926..4c27c2946d 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1112,7 +1112,7 @@ static mp_osd_msg_t* osd_msg_stack = NULL; * */ -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 @@ static mp_osd_msg_t* get_osd_msg(void) { * */ -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 @@ static m_option_t mp_properties[] = { { 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); } -- cgit v1.2.3