diff --git a/Gui/app.c b/Gui/app.c index 58b4a7667c..cfda704967 100644 --- a/Gui/app.c +++ b/Gui/app.c @@ -70,7 +70,7 @@ int evBoxs = sizeof( evNames ) / sizeof( evName ); // --- -extern char *get_path(char *); +extern char *get_path(const char *); listItems appMPlayer; diff --git a/Gui/cfg.c b/Gui/cfg.c index a120acaa5a..b890b905e9 100644 --- a/Gui/cfg.c +++ b/Gui/cfg.c @@ -75,7 +75,7 @@ int gui_sub_pos_x = -1; int gui_sub_pos_y = -1; // --- -extern char * get_path( char * filename ); +extern char * get_path( const char * filename ); extern int flip; extern int frame_dropping; extern int stop_xscreensaver; diff --git a/Gui/interface.h b/Gui/interface.h index 56a555ba5a..484ac99067 100644 --- a/Gui/interface.h +++ b/Gui/interface.h @@ -142,7 +142,7 @@ extern guiInterface_t guiIntfStruct; #define guiFilenames 4 #define guiALL 0xffffffff -extern char *get_path(char *filename); +extern char *get_path(const char *filename); extern void guiInit( void ); extern void guiDone( void ); diff --git a/get_path.c b/get_path.c index 47b50da400..679b0632ed 100644 --- a/get_path.c +++ b/get_path.c @@ -18,7 +18,7 @@ #include #endif -char *get_path(char *filename){ +char *get_path(const char *filename){ char *homedir; char *buff; #if defined(__MINGW32__) diff --git a/input/input.c b/input/input.c index 81b28a62d9..4b1afa3214 100644 --- a/input/input.c +++ b/input/input.c @@ -1562,7 +1562,7 @@ mp_input_parse_config(char *file) { return 0; } -extern char *get_path(char *filename); +extern char *get_path(const char *filename); void mp_input_init(int use_gui) { diff --git a/libaf/af_export.c b/libaf/af_export.c index dd20777c0c..f5f134785d 100644 --- a/libaf/af_export.c +++ b/libaf/af_export.c @@ -23,7 +23,7 @@ #include "af.h" -extern char * get_path( char * filename ); +extern char * get_path( const char * filename ); #define DEF_SZ 512 // default buffer size (in samples) diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c index 37ab41875b..d5601ae5c3 100644 --- a/libmpcodecs/dec_audio.c +++ b/libmpcodecs/dec_audio.c @@ -199,7 +199,7 @@ int init_audio(sh_audio_t *sh_audio,char* codecname,char* afm,int status){ return 0; } -extern char *get_path(char *filename); +extern char *get_path(const char *filename); int init_best_audio_codec(sh_audio_t *sh_audio,char** audio_codec_list,char** audio_fm_list){ char* ac_l_default[2]={"",(char*)NULL}; diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index cd929c7b0f..cba3693e46 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -251,7 +251,7 @@ int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status){ return 0; } -extern char *get_path(char *filename); +extern char *get_path(const char *filename); int init_best_video_codec(sh_video_t *sh_video,char** video_codec_list,char** video_fm_list){ char* vc_l_default[2]={"",(char*)NULL}; diff --git a/libmpdemux/dvbin.c b/libmpdemux/dvbin.c index 6393e37f7b..7ba9c84f22 100644 --- a/libmpdemux/dvbin.c +++ b/libmpdemux/dvbin.c @@ -623,7 +623,7 @@ int dvb_step_channel(dvb_priv_t *priv, int dir) -extern char *get_path(char *); +extern char *get_path(const char *); static void dvbin_close(stream_t *stream) { diff --git a/libmpdvdkit2/dvd_reader.c b/libmpdvdkit2/dvd_reader.c index cb2998e74d..1b85135937 100644 --- a/libmpdvdkit2/dvd_reader.c +++ b/libmpdvdkit2/dvd_reader.c @@ -213,7 +213,7 @@ static int initAllCSSKeys( dvd_reader_t *dvd ) #ifndef HAVE_MPLAYER #include "get_path.c" #else - extern char * get_path( char * filename ); + extern char * get_path( const char * filename ); #endif //extern char * dvdcss_cache_dir; diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index 2dbd06173b..c7f6dff14e 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -38,7 +38,7 @@ #define HAVE_FREETYPE21 #endif -char *get_path(char *filename); +char *get_path(const char *filename); char *subtitle_font_encoding = NULL; float text_font_scale_factor = 5.0; diff --git a/libvo/vo_dxr2.c b/libvo/vo_dxr2.c index 89d6933721..ea7b0937d6 100644 --- a/libvo/vo_dxr2.c +++ b/libvo/vo_dxr2.c @@ -26,7 +26,7 @@ #include -extern char *get_path(char *filename); +extern char *get_path(const char *filename); extern float monitor_aspect; extern float movie_aspect; diff --git a/loader/qtx/list.c b/loader/qtx/list.c index 86d71df267..feed23dc37 100644 --- a/loader/qtx/list.c +++ b/loader/qtx/list.c @@ -11,7 +11,7 @@ #include "qtxsdk/components.h" #include "qtxsdk/select.h" -char* get_path(char* x){ return strdup(x);} +char* get_path(const char* x){ return strdup(x);} void* LoadLibraryA(char* name); void* GetProcAddress(void* handle,char* func); diff --git a/loader/qtx/qtxload.c b/loader/qtx/qtxload.c index 3ac6f319f3..6dd088d643 100644 --- a/loader/qtx/qtxload.c +++ b/loader/qtx/qtxload.c @@ -22,7 +22,7 @@ ComponentResult ComponentDummy( return(0); } -char *get_path(char* x){ return strdup(x);} +char *get_path(const char* x){ return strdup(x);} void* LoadLibraryA(char* name); void* GetProcAddress(void* handle,char* func); diff --git a/loader/registry.c b/loader/registry.c index 4a05e88d54..1ed90bd60c 100644 --- a/loader/registry.c +++ b/loader/registry.c @@ -24,7 +24,7 @@ //#undef TRACE //#define TRACE printf -extern char *get_path ( char * ); +extern char *get_path ( const char * ); // ...can be set before init_registry() call char* regpathname = NULL;