diff --git a/legacy/ecore/src/lib/ecore_file/Ecore_File.h b/legacy/ecore/src/lib/ecore_file/Ecore_File.h index 34fc8e7151..5a7e9a62b3 100644 --- a/legacy/ecore/src/lib/ecore_file/Ecore_File.h +++ b/legacy/ecore/src/lib/ecore_file/Ecore_File.h @@ -61,7 +61,7 @@ extern "C" { EAPI int ecore_file_mv (const char *src, const char *dst); EAPI char *ecore_file_realpath (const char *file); EAPI int ecore_file_unlink (const char *file); - EAPI char *ecore_file_get_file (char *path); + EAPI const char *ecore_file_get_file (const char *path); EAPI char *ecore_file_get_dir (char *path); EAPI int ecore_file_can_exec (const char *file); diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c index efbeb2534c..e53d909df2 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c @@ -212,8 +212,8 @@ ecore_file_realpath(const char *file) return strdup(buf); } -char * -ecore_file_get_file(char *path) +const char * +ecore_file_get_file(const char *path) { char *result = NULL;