summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-13 05:03:43 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-13 05:03:43 +0000
commit1a16cbfec37875026b9ddb2839698d0d150b05cd (patch)
tree3ae8458b7cb56a53e900f9de6ce301d6846a8f18 /mplayer.c
parent7e18214f7dd6a3d51fff89c56762560b590033aa (diff)
downloadmpv-1a16cbfec37875026b9ddb2839698d0d150b05cd.tar.bz2
mpv-1a16cbfec37875026b9ddb2839698d0d150b05cd.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
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);
}