aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_file/ecore_file.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2011-02-09 17:10:00 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2011-02-09 17:10:00 +0000
commitbd1b8e9985fbca30cdfb6dc386a8053c92130b60 (patch)
tree85eac78d99c712e28d902bd2b4b573ca99c40525 /legacy/ecore/src/lib/ecore_file/ecore_file.c
parentcheck >= to close fd (diff)
downloadefl-bd1b8e9985fbca30cdfb6dc386a8053c92130b60.tar.gz
renmae variable to prevent name clash
SVN revision: 56856
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index f9b93d8f28..cd29a3399a 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -767,7 +767,7 @@ ecore_file_can_exec(const char *file)
/**
* @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.
*
* 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.
*/
EAPI char *
-ecore_file_readlink(const char *link)
+ecore_file_readlink(const char *lnk)
{
char buf[PATH_MAX];
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;
return strdup(buf);
}