renmae variable to prevent name clash

SVN revision: 56856
This commit is contained in:
Sebastian Dransfeld 2011-02-09 17:10:00 +00:00
parent 68c11a1c76
commit bd1b8e9985
1 changed files with 3 additions and 3 deletions

View File

@ -767,7 +767,7 @@ ecore_file_can_exec(const char *file)
/** /**
* @brief Get the path pointed by the given link. * @brief Get the path pointed by the given link.
* *
* @param link The name of the link. * @param lnk The name of the link.
* @return The path pointed by link or NULL. * @return The path pointed by link or NULL.
* *
* This function returns the path pointed by @p link as a newly * This function returns the path pointed by @p link as a newly
@ -776,12 +776,12 @@ ecore_file_can_exec(const char *file)
* returned value must be freed. * returned value must be freed.
*/ */
EAPI char * EAPI char *
ecore_file_readlink(const char *link) ecore_file_readlink(const char *lnk)
{ {
char buf[PATH_MAX]; char buf[PATH_MAX];
int count; int count;
if ((count = readlink(link, buf, sizeof(buf) - 1)) < 0) return NULL; if ((count = readlink(lnk, buf, sizeof(buf) - 1)) < 0) return NULL;
buf[count] = 0; buf[count] = 0;
return strdup(buf); return strdup(buf);
} }