diff --git a/src/lib/eina/eina_util.c b/src/lib/eina/eina_util.c index 55b5bd5343..68c0fcc666 100644 --- a/src/lib/eina/eina_util.c +++ b/src/lib/eina/eina_util.c @@ -40,7 +40,7 @@ * API * *============================================================================*/ -EAPI Eina_Tmpstr * +EAPI const char * eina_environment_home_get(void) { #ifdef _WIN32 @@ -50,13 +50,13 @@ eina_environment_home_get(void) if (!home) home = getenv("WINDIR"); if (!home) home = "C:\\"; - return eina_tmpstr_add(home); + return home; #else - return eina_tmpstr_add(getenv("HOME")); + return getenv("HOME"); #endif } -EAPI Eina_Tmpstr * +EAPI const char * eina_environment_tmp_get(void) { char *tmp; @@ -68,12 +68,12 @@ eina_environment_tmp_get(void) if (!tmp) tmp = getenv("WINDIR"); if (!tmp) tmp = "C:\\"; - return eina_tmpstr_add(tmp); + return tmp; #else tmp = getenv("TMPDIR"); if (!tmp) tmp = getenv("XDG_RUNTIME_DIR"); if (!tmp) tmp = "/tmp"; - return eina_tmpstr_add(tmp); + return tmp; #endif } diff --git a/src/lib/eina/eina_util.h b/src/lib/eina/eina_util.h index 3677cc4a1a..a73c4db75c 100644 --- a/src/lib/eina/eina_util.h +++ b/src/lib/eina/eina_util.h @@ -32,7 +32,7 @@ * @note The result of this call is highly system dependent and you better use * it instead of the naive getenv("HOME"). */ -EAPI Eina_Tmpstr *eina_environment_home_get(void); +EAPI const char *eina_environment_home_get(void); /** * @brief Return the content of the environment refered as TMPDIR on this system. @@ -41,6 +41,6 @@ EAPI Eina_Tmpstr *eina_environment_home_get(void); * @note The result of this call is highly system dependent and you better use * it instead of the naive getenv("TMPDIR"). */ -EAPI Eina_Tmpstr *eina_environment_tmp_get(void); +EAPI const char *eina_environment_tmp_get(void); #endif