diff -ur softplay-cvs-20080421.orig/PlayList.c softplay-cvs-20080421/PlayList.c --- softplay-cvs-20080421.orig/PlayList.c 2008-04-21 12:57:46.000000000 +0300 +++ softplay-cvs-20080421/PlayList.c 2009-08-09 23:14:13.000000000 +0300 @@ -625,7 +625,7 @@ }; SetFilename(Filename); - char *ncopy=rindex(Filename,'/'); + char *ncopy=const_cast (rindex(Filename,'/')); int count=(int) (ncopy-Filename); if ( ncopy && count > STR_LENGTH) { fprintf(stderr,"Could not extract directory!\n"); diff -ur softplay-cvs-20080421.orig/softplay.c softplay-cvs-20080421/softplay.c --- softplay-cvs-20080421.orig/softplay.c 2008-04-21 12:57:46.000000000 +0300 +++ softplay-cvs-20080421/softplay.c 2009-08-09 23:17:13.000000000 +0300 @@ -49,7 +49,7 @@ sizeof(myDir): (unsigned int)(ToPos-path+1)); printf("MyDir '%s'\n",myDir); PrepareDirectory(myDir); - myToPos=index(ToPos+1,'/'); + myToPos=const_cast (index(ToPos+1,'/')); AddSubMenu(new cMenuDirectory(path,EditList,myToPos)); } else { printf("Open only directory '%s'.\n",path); @@ -592,7 +592,7 @@ bool IsM3UFile( const char * const Filename) { char * pos; - pos = rindex(Filename,'.'); + pos = const_cast (rindex(Filename,'.')); if ( !pos ) return false; if ( !strcmp(pos,".m3u") ) { @@ -614,10 +614,10 @@ void chomp(const char *const str) { char *pos; - pos = index(str,'\n'); + pos = const_cast (index(str,'\n')); if (pos) *pos=0; - pos = index(str,'\r'); + pos = const_cast (index(str,'\r')); if (pos) *pos=0; }; diff -ur softplay-cvs-20080421.orig/SoftPlayer.c softplay-cvs-20080421/SoftPlayer.c --- softplay-cvs-20080421.orig/SoftPlayer.c 2008-04-21 12:57:46.000000000 +0300 +++ softplay-cvs-20080421/SoftPlayer.c 2009-08-09 23:14:57.000000000 +0300 @@ -409,7 +409,7 @@ }; bool IsStreamFile( const char * const Filename) { - char * pos; + const char * pos; pos = rindex(Filename,'.'); printf("IsStream %s\n",pos); if ( !pos )