summaryrefslogtreecommitdiff
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
parent68c11a1c76d44a4c67c207e3a4878a47f1fbe965 (diff)
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)
767/** 767/**
768 * @brief Get the path pointed by the given link. 768 * @brief Get the path pointed by the given link.
769 * 769 *
770 * @param link The name of the link. 770 * @param lnk The name of the link.
771 * @return The path pointed by link or NULL. 771 * @return The path pointed by link or NULL.
772 * 772 *
773 * This function returns the path pointed by @p link as a newly 773 * This function returns the path pointed by @p link as a newly
@@ -776,12 +776,12 @@ ecore_file_can_exec(const char *file)
776 * returned value must be freed. 776 * returned value must be freed.
777 */ 777 */
778EAPI char * 778EAPI char *
779ecore_file_readlink(const char *link) 779ecore_file_readlink(const char *lnk)
780{ 780{
781 char buf[PATH_MAX]; 781 char buf[PATH_MAX];
782 int count; 782 int count;
783 783
784 if ((count = readlink(link, buf, sizeof(buf) - 1)) < 0) return NULL; 784 if ((count = readlink(lnk, buf, sizeof(buf) - 1)) < 0) return NULL;
785 buf[count] = 0; 785 buf[count] = 0;
786 return strdup(buf); 786 return strdup(buf);
787} 787}